Skip to content
Snippets Groups Projects
Commit 6577bbcc authored by Hendrik Buschmeier's avatar Hendrik Buschmeier
Browse files

ipaaca-logger: ability to print json.

parent f671efb6
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,11 @@ def LOG_IPAACA(lvl, text, now=0.0, fn='???', thread='???'):
def LOG_CONSOLE(lvlstr, msg, fn_markup='', msg_markup='', now=0.0, fn='???', thread='???'):
for line in msg.split('\n'):
if isinstance(msg, basestring):
lines = msg.split('\n')
else:
lines = [msg]
for line in lines:
text = lvlstr+' '+thread+' '+fn_markup+fn+''+' '+msg_markup+unicode(line)+''
print(text)
fn = ' '*len(fn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment