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

Catch exceptions occuring during ipaaca-log-message sending.

parent 6577bbcc
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ import ipaaca
__all__ = [
'logger_send_ipaaca_logs',
'logger_set_log_filename',
'logger_set_module_name',
'LOG_DEBUG',
'LOG_INFO',
......@@ -113,7 +114,12 @@ def LOG_IPAACA(lvl, text, now=0.0, fn='???', thread='???'):
'thread': thread,
'uuid': uid,
'text': text,}
OUTPUT_BUFFER.add(msg)
try:
OUTPUT_BUFFER.add(msg)
except Exception, e:
LOG_ERROR('Caught an exception while logging via ipaaca. '
+ ' str(e); '
+ traceback.format_exc())
def LOG_CONSOLE(lvlstr, msg, fn_markup='', msg_markup='', now=0.0, fn='???', thread='???'):
......
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