From 5181944de02a2db728ecf6ff313be54b12c43e10 Mon Sep 17 00:00:00 2001 From: Storm Dragon <stormdragon2976@gmail.com> Date: Sun, 20 Apr 2025 15:27:59 -0400 Subject: [PATCH] Move timestamps to the end of the log message instead of the beginning. Makes debugging much less of a PITA. --- src/cthulhu/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cthulhu/debug.py b/src/cthulhu/debug.py index e6de6de..47a2566 100644 --- a/src/cthulhu/debug.py +++ b/src/cthulhu/debug.py @@ -298,7 +298,7 @@ def println(level, text="", timestamp=False, stack=False): text = text.replace("\ufffc", "[OBJ]") if timestamp: text = text.replace("\n", f"\n{' ' * 18}") - text = f"{datetime.now().strftime('%H:%M:%S.%f')} - {text}" + text = f"{text} - {datetime.now().strftime('%H:%M:%S.%f')}" if stack: text += f" {_stackAsString()}"