core (xmpp): specify profile when logging a connection problem
This commit is contained in:
parent
0008d3478e
commit
68092dd2bb
1 changed files with 1 additions and 3 deletions
|
|
@ -385,9 +385,7 @@ class SatXMPPEntity:
|
||||||
# TODO: create a ticket upstream, Twisted should work when optimization
|
# TODO: create a ticket upstream, Twisted should work when optimization
|
||||||
# is used
|
# is used
|
||||||
reason_str = str(reason.value.__class__)
|
reason_str = str(reason.value.__class__)
|
||||||
log.warning("Connection {term_type}: {reason}".format(
|
log.warning(f"[{self.profile}] Connection {term_type}: {reason_str}")
|
||||||
term_type = term_type,
|
|
||||||
reason=reason_str))
|
|
||||||
if not self.host_app.trigger.point("connection_" + term_type, connector, reason):
|
if not self.host_app.trigger.point("connection_" + term_type, connector, reason):
|
||||||
return
|
return
|
||||||
return cb(connector, reason)
|
return cb(connector, reason)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue