diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-02 13:59:42 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-03-02 13:59:42 +0000 |
commit | 5ae784c439294876e3f49f826c9f8cbff11a7110 (patch) | |
tree | 331735b94e1630b3f69958990817b1c610c3ee31 /alot/init.py | |
parent | 35577655e8a57226eead940579f6c07589bc6d9f (diff) |
overwrite logs by default
this makes logging replace existing logfiles instead
of appending to it.
closes #290
Diffstat (limited to 'alot/init.py')
-rwxr-xr-x | alot/init.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = [ |