From 0ee3e5ee6fb5fd1ba254abb783af9ecc17d065c2 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 9 Jan 2024 19:44:22 +0500 Subject: [PATCH] uprade logs messages --- plogical/upgrade.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 36dcf9d1b..001de486c 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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: