Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/alice-smart-home.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-12-02 11:50:40 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-12-02 11:50:40 +0300
commitcccba5da29000cbba8e9f927ba01b978b735eeaa (patch)
treefe10c268544345dbf9b3b2c865a4e274b2cb276a /config.py
parent9a6875d71cdb6d94222f8c4861017203cb0ba703 (diff)
Better logging, instance handling
Diffstat (limited to 'config.py')
-rw-r--r--config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.py b/config.py
index 6afecd2..e0de73f 100644
--- a/config.py
+++ b/config.py
@@ -6,8 +6,8 @@ USERS_DIRECTORY = "/home/alice/users"
TOKENS_DIRECTORY = "/home/alice/tokens"
DEVICES_DIRECTORY = "/home/alice/devices"
-# Uncomment to enable logging
-#LOG_FILE = "/var/log/alice.log"
-#LOG_LEVEL = logging.DEBUG
-#LOG_FORMAT = "%(asctime)s %(remote_addr)s %(user)s %(message)s"
-#LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
+# Uncomment to tune logging
+# LOG_FILE = "/var/log/alice.log"
+# LOG_LEVEL = logging.DEBUG
+# LOG_FORMAT = "[%(asctime)s] [%(levelname)s] [%(remote_addr)s] [%(user)s]: %(message)s"
+# LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"