Make lib.App logging more customizable #55

Merged
Jan Lindemann merged 6 commits from jan/feature/20260810-make-lib-app-logging-more-customizable into master 2026-08-10 20:34:59 +02:00 AGit
Showing only changes of commit 5d2e4fc03c - Show all commits

lib.log.log(): Fix early return without flags set

When position, prio, and date are all absent from the log flags, the
msg variable is empty. The early return 'if not len(msg): return'
would then skip printing the actual message in margs.

Fix by checking both msg and margs before returning. This ensures
messages are still printed even when no prefix flags are set.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann 2026-08-08 20:29:35 +02:00
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -240,7 +240,7 @@ def log( # export
msg += _log_prefix
if not len(msg):
if not len(msg) and not len(margs):
return
if len(margs):