X-Git-Url: http://git.maemo.org/git/?p=jamaendo;a=blobdiff_plain;f=jamaui%2F__init__.py;h=483bcd4ae3a13f3028ceb95b8b1a1863f327166a;hp=5bf0b3e633d05ee18cbd3c55408bb2bfda81a9b0;hb=ae451be237b4622abd934a611f5e2dd4d8aec883;hpb=72fc39c94e9a5cd00c8e9ddc665312073f840c32 diff --git a/jamaui/__init__.py b/jamaui/__init__.py index 5bf0b3e..483bcd4 100644 --- a/jamaui/__init__.py +++ b/jamaui/__init__.py @@ -30,7 +30,7 @@ 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)