From 4eeb88dd8fff60f11321192cf5ca264e8ddcb3e9 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 2 Nov 2011 10:56:42 +0100 Subject: [PATCH] Append, don't truncate, log file The new logging handler was truncating the log file on each start. Append by default. Signed-off-by: Sebastian Spaeth --- offlineimap/ui/UIBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index 44c920f..75cb313 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -81,7 +81,7 @@ class UIBase(object): def setlogfile(self, logfile): """Create file handler which logs to file""" - fh = logging.FileHandler(logfile, 'wt') + fh = logging.FileHandler(logfile, 'at') #fh.setLevel(logging.DEBUG) file_formatter = logging.Formatter("%(asctime)s %(levelname)s: " "%(message)s", '%Y-%m-%d %H:%M:%S')