Logging date

This commit is contained in:
resteve 2012-12-20 11:41:32 +01:00
parent 3ae47c70d6
commit 5111699683
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ def antbkp(configuration):
options['smtp'] = smtp
options['log'] = results['global']['log']
logging.basicConfig(filename=options.get('log'), level=logging.INFO)
logging.basicConfig(format='%(asctime)s %(message)s',
filename=options.get('log'), level=logging.INFO)
backdir = options.get('backdir')
if not os.path.exists(backdir):