core (xmpp): specify profile when logging a connection problem

This commit is contained in:
Goffi 2021-11-30 17:27:26 +01:00
commit 68092dd2bb

View file

@ -385,9 +385,7 @@ class SatXMPPEntity:
# TODO: create a ticket upstream, Twisted should work when optimization
# is used
reason_str = str(reason.value.__class__)
log.warning("Connection {term_type}: {reason}".format(
term_type = term_type,
reason=reason_str))
log.warning(f"[{self.profile}] Connection {term_type}: {reason_str}")
if not self.host_app.trigger.point("connection_" + term_type, connector, reason):
return
return cb(connector, reason)