From e589cdbdbfe2ad3f69020391ed9770381893df83 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 25 Mar 2026 11:38:29 +0100 Subject: [PATCH] cmds and lib: Don't print() log messages print() should be used to output information requested by a certain command, but not for logging the process to achieve it. log() should be used for the latter. The current code has the distinction not down clearly, fix that. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/projects/CmdBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/projects/CmdBuild.py b/src/python/jw/pkg/cmds/projects/CmdBuild.py index 914a4aff..19ca5db4 100644 --- a/src/python/jw/pkg/cmds/projects/CmdBuild.py +++ b/src/python/jw/pkg/cmds/projects/CmdBuild.py @@ -187,7 +187,7 @@ class CmdBuild(Cmd): # export await run_make_on_modules(modules, order, target) - log(NOTICE, 'Build done at {}' % (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) + log(NOTICE, 'Build done at %s' % (datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))) dep_cache: dict[dict[str, str]] = {}