Commit a5c2b88c authored by Saul Ibarra's avatar Saul Ibarra

Fixed PJSIP logging after changes in the core

parent 7db0d3a5
......@@ -179,9 +179,9 @@ class LogManager(object):
settings = SIPSimpleSettings()
if not settings.logs.trace_pjsip:
return
message = "(%(level)d) %(sender)14s: %(message)s" % notification.data.__dict__
message = "(%(level)d) %(message)s" % notification.data.__dict__
try:
self.pjsiptrace_file.write('%s [%s %d] %s\n' % (notification.datetime, self.name, self.pid, message))
self.pjsiptrace_file.write('[%s %d] %s\n' % (self.name, self.pid, message))
self.pjsiptrace_file.flush()
except Exception:
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment