Skip to content
Snippets Groups Projects
Commit c8aec68f authored by Chris Hines's avatar Chris Hines
Browse files

reduce the debug levels

parent 0fbc8dad
No related branches found
No related tags found
2 merge requests!95Test,!94Dev
Pipeline #67613 passed
......@@ -2,7 +2,7 @@ import logging
from logging.handlers import TimedRotatingFileHandler
FORMAT = "[%(asctime)s %(thread)d %(levelname)s:%(process)s %(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s"
logger=logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.ERROR)
handler = TimedRotatingFileHandler(filename="/var/log/strudel2/tes.log",when='h',interval=24,backupCount=7)
formatter = logging.Formatter(FORMAT)
handler.setFormatter(formatter)
......
......@@ -198,7 +198,7 @@ def mainserver(port=None):
to_log = to_log + traceback.format_exc()
logging.basicConfig(filename=os.path.expanduser("~/.tws.log"),format="%(asctime)s %(levelname)s:%(process)s: %(message)s")
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.ERROR)
if to_log is not None:
logger.debug(to_log)
logger.debug("starting TWS proxy")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment