aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar neptune 2023-01-10 02:19:00 -0300
committerLibravatar Choom 2023-01-10 03:10:23 -0300
commit9e2ca4cadd7d693d5b7e8505784ccee72d9be8da (patch)
treedb8e020715b076594266c2e2fb296567682fec10 /cgi
parent7dbd8f3dc62ea8227f3fe3b5729a1812f1abbb0c (diff)
downloadweabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.tar.gz
weabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.tar.xz
weabot-9e2ca4cadd7d693d5b7e8505784ccee72d9be8da.zip
Nivel de logging como setting
Diffstat (limited to 'cgi')
-rwxr-xr-xcgi/weabot.py2
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"]