Add timestamp to error reports.

This commit is contained in:
dotnet 2023-10-13 14:22:44 -04:00
parent 63baf977be
commit 624efba2d5
1 changed files with 3 additions and 0 deletions

View File

@ -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