Add timestamp to error reports.
This commit is contained in:
parent
63baf977be
commit
624efba2d5
|
@ -278,7 +278,10 @@ def main():
|
|||
|
||||
# If error, print error and continue
|
||||
except Exception as e:
|
||||
#Print time
|
||||
print("\n\n" + cfg_name + ": Error: ", file=log_file)
|
||||
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), file=log_file)
|
||||
print("\n\n", file=log_file)
|
||||
traceback.print_exc(file=log_file)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue