This commit is contained in:
brent s 2017-09-13 18:44:23 -04:00
parent 4cf5a6393a
commit 05c3fcc825
1 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ def main():
if getpass.getuser() not in ('root', sks['user']): if getpass.getuser() not in ('root', sks['user']):
exit('ERROR: You must be root or {0}!'.format(sks['user'])) exit('ERROR: You must be root or {0}!'.format(sks['user']))
with open(sks['logfile'], 'a') as f: with open(sks['logfile'], 'a') as f:
f.write('===== {0} STARTING ====='.format(str(datetime.datetime.utcnow()))) f.write('===== {0} STARTING =====\n'.format(str(datetime.datetime.utcnow())))
if not args['nodump']: if not args['nodump']:
dumpDB() dumpDB()
if not args['nocompress']: if not args['nocompress']:
@ -211,7 +211,7 @@ def main():
if not args['nosync']: if not args['nosync']:
syncDB() syncDB()
with open(sks['logfile'], 'a') as f: with open(sks['logfile'], 'a') as f:
f.write('===== {0} DONE ====='.format(str(datetime.datetime.utcnow()))) f.write('===== {0} DONE =====\n'.format(str(datetime.datetime.utcnow())))




if __name__ == '__main__': if __name__ == '__main__':