diff options
author | Rob Austein <sra@hactrn.net> | 2010-01-07 01:00:17 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-01-07 01:00:17 +0000 |
commit | 1941a578fafd9d20c95c834d72a330957cee4f62 (patch) | |
tree | 671076b0ee3236dc77133be4e292d6da268b0f75 | |
parent | 17a8341af02eee891b6a31806593bcfc88a76f2b (diff) |
Split backtraces into separate messages, one per line, for syslog.
svn path=/rpkid/rpki/log.py; revision=2933
-rw-r--r-- | rpkid/rpki/log.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpkid/rpki/log.py b/rpkid/rpki/log.py index 4edf501f..bbebe45a 100644 --- a/rpkid/rpki/log.py +++ b/rpkid/rpki/log.py @@ -107,4 +107,5 @@ def traceback(): error("Exception caught in %s() at %s:%d called from %s:%d" % (bt[1][2], bt[1][0], bt[1][1], bt[0][0], bt[0][1])) bt = tb.format_exc() assert bt is not None, "Apparently I'm still not using the right test for null backtrace" - error(bt) + for line in bt.splitlines(): + error(line) |