tMake debug message timestamps include the date - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit 5f7c503bde0393269ac6863f93ace1882336db76 DIR parent b57e130024b51ed4cbc0eee9982afd1a57644c41 HTML Author: chris-belcher <chris-belcher@users.noreply.github.com> Date: Thu, 14 Jun 2018 01:38:48 +0100 Make debug message timestamps include the date This is helpful when looking at the logs of a long-running server instance Diffstat: M server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/server.py b/server.py t@@ -44,7 +44,7 @@ debug_fd = None #log for checking up/seeing your wallet, debug for when something has gone wrong def debugorlog(line, ttype): - timestamp = datetime.datetime.now().strftime("%H:%M:%S,%f") + timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S,%f") return timestamp + " [" + ttype + "] " + line def debug(line):