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
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:]