Enhance console logging: add option to print logs regardless of debug state

This commit is contained in:
Vxrtrauter
2026-01-17 02:00:16 +01:00
parent efe83613d0
commit 5bc81b5215
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -165,7 +165,7 @@ def set_main_window(window):
global _main_window
_main_window = window
def consoleLog(text):
def consoleLog(text, printAnyways = False):
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
@@ -175,5 +175,5 @@ def consoleLog(text):
except Exception:
pass
if state.debug:
if state.debug or printAnyways:
print(f"[{current_time}] {text}")