mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
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:
parent
22cabb4eac
commit
d15242600a
1 changed files with 3 additions and 5 deletions
|
|
@ -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:]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue