log.py: Fix non-working slog()

No idea how this ever worked. Still not sure about the best way.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-10-16 12:22:49 +02:00
commit d15242600a

View file

@ -16,11 +16,9 @@ level = NOTICE
def slog(prio, *args): # export def slog(prio, *args): # export
if prio > level: if prio > level:
return return
msg = "" msg = ''
for count, things in enumerate(args): for a in args:
#msg += ' ' + str(*thing) msg += ' ' + str(a)
for m in things:
msg += ' ' + str(m)
if len(msg): if len(msg):
print msg[1:] print msg[1:]