Logging date
This commit is contained in:
parent
3ae47c70d6
commit
5111699683
|
@ -36,7 +36,8 @@ def antbkp(configuration):
|
||||||
options['smtp'] = smtp
|
options['smtp'] = smtp
|
||||||
options['log'] = results['global']['log']
|
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')
|
backdir = options.get('backdir')
|
||||||
if not os.path.exists(backdir):
|
if not os.path.exists(backdir):
|
||||||
|
|
Loading…
Reference in New Issue