X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=jamaui%2F__init__.py;h=483bcd4ae3a13f3028ceb95b8b1a1863f327166a;hb=ae451be237b4622abd934a611f5e2dd4d8aec883;hp=819b0d799554d4bb5b4c7aaf23ee3981f6715b7b;hpb=61536ca548691b15e7f63340a0fbfb5a3055d5be;p=jamaendo diff --git a/jamaui/__init__.py b/jamaui/__init__.py index 819b0d7..483bcd4 100644 --- a/jamaui/__init__.py +++ b/jamaui/__init__.py @@ -26,11 +26,11 @@ import logging import sys LOG_FILENAME = '/tmp/jamaendo.log' -LOG_LEVEL = logging.DEBUG +LOG_LEVEL = logging.INFO LOG_FORMAT = "%(asctime)s %(name)-10s: [%(lineno)4d] %(levelname)-5s %(message)s" _rootlogger = logging.getLogger() -_fhandler = logging.FileHandler(LOG_FILENAME) +_fhandler = logging.FileHandler(LOG_FILENAME, mode='w') _shandler = logging.StreamHandler() _formatter = logging.Formatter(LOG_FORMAT) _fhandler.setFormatter(_formatter)