Skip to content

Commit

Permalink
uprade logs messages
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 9, 2024
1 parent dc6a5af commit 0ee3e5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def stdOut(message, do_exit=0):
"%m.%d.%Y_%H-%M-%S") + "] #########################################################################\n"))

WriteToFile = open(Upgrade.LogPathNew, 'a')
WriteToFile.write(message)
WriteToFile.write(("[" + time.strftime(
"%m.%d.%Y_%H-%M-%S") + "] #########################################################################\n"))
WriteToFile.write(("[" + time.strftime("%m.%d.%Y_%H-%M-%S") + "] " + message + "\n"))
WriteToFile.write(("[" + time.strftime(
"%m.%d.%Y_%H-%M-%S") + "] #########################################################################\n"))
WriteToFile.close()

if do_exit:
Expand Down

0 comments on commit 0ee3e5e

Please sign in to comment.