update
This commit is contained in:
parent
e4b1b9c4d8
commit
3ce822fc27
18 changed files with 198 additions and 68 deletions
|
|
@ -69,12 +69,9 @@ def tox_factory(data=None, settings=None, args=None, app=None):
|
|||
|
||||
if 'trace_enabled' in settings and not settings['trace_enabled']:
|
||||
LOG_DEBUG("settings['trace_enabled' disabled" )
|
||||
elif tox_options._options_pointer:
|
||||
c_callback = CFUNCTYPE(None, c_void_p, c_int, c_char_p, c_int, c_char_p, c_char_p, c_void_p)
|
||||
tox_options.self_logger_cb = c_callback(ts.tox_log_cb)
|
||||
tox_wrapper.tox.Tox.libtoxcore.tox_options_set_log_callback(
|
||||
tox_options._options_pointer,
|
||||
tox_options.self_logger_cb)
|
||||
elif tox_options._options_pointer and \
|
||||
'trace_enabled' in settings and settings['trace_enabled']:
|
||||
ts.vAddLoggerCallback(tox_options)
|
||||
LOG_INFO("c-toxcore trace_enabled enabled" )
|
||||
else:
|
||||
LOG_WARN("No tox_options._options_pointer to add self_logger_cb" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue