From 9e2ca4cadd7d693d5b7e8505784ccee72d9be8da Mon Sep 17 00:00:00 2001 From: neptune Date: Tue, 10 Jan 2023 02:19:00 -0300 Subject: Nivel de logging como setting --- cgi/weabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] -- cgit v1.2.1-18-gbd029