From d15242600a6c6bd63d708bfa1a30585db7b94d6a Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 16 Oct 2017 12:22:49 +0200 Subject: [PATCH] log.py: Fix non-working slog() No idea how this ever worked. Still not sure about the best way. Signed-off-by: Jan Lindemann --- tools/python/jwutils/log.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/python/jwutils/log.py b/tools/python/jwutils/log.py index 1da98c0..98bae71 100644 --- a/tools/python/jwutils/log.py +++ b/tools/python/jwutils/log.py @@ -16,11 +16,9 @@ level = NOTICE def slog(prio, *args): # export if prio > level: return - msg = "" - for count, things in enumerate(args): - #msg += ' ' + str(*thing) - for m in things: - msg += ' ' + str(m) + msg = '' + for a in args: + msg += ' ' + str(a) if len(msg): print msg[1:]