From 5ae784c439294876e3f49f826c9f8cbff11a7110 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Fri, 2 Mar 2012 13:59:42 +0000 Subject: overwrite logs by default this makes logging replace existing logfiles instead of appending to it. closes #290 --- alot/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/init.py') diff --git a/alot/init.py b/alot/init.py index bed550ff..03e6b8ce 100755 --- a/alot/init.py +++ b/alot/init.py @@ -121,7 +121,7 @@ def main(): logfilename = os.path.expanduser(args['logfile']) logformat = '%(levelname)s:%(module)s:%(message)s' logging.basicConfig(level=numeric_loglevel, filename=logfilename, - format=logformat) + filemode='w', format=logformat) # locate alot config files configfiles = [ -- cgit v1.2.3