diff options
author | neptune | 2023-01-10 02:19:00 -0300 |
---|---|---|
committer | Choom | 2023-01-10 03:10:23 -0300 |
commit | 9e2ca4cadd7d693d5b7e8505784ccee72d9be8da (patch) | |
tree | db8e020715b076594266c2e2fb296567682fec10 /cgi | |
parent | 7dbd8f3dc62ea8227f3fe3b5729a1812f1abbb0c (diff) | |
download | weabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.tar.gz weabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.tar.xz weabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.zip |
Nivel de logging como setting
Diffstat (limited to 'cgi')
-rwxr-xr-x | cgi/weabot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py index a4f8b4b..4a5cfcd 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -35,7 +35,7 @@ class weabot(object): def __init__(self, environ, start_response): global _DEBUG - logging.basicConfig(filename='weabot.log', format='%(asctime)s %(levelname)s %(message)s', level=logging.DEBUG) + logging.basicConfig(filename='weabot.log', format='%(asctime)s %(levelname)s %(message)s', level=Settings.LOG_LEVEL) self.environ = environ self.ip = self.environ["HTTP_X_REAL_IP"] |