diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 1fddf577..bbfdcdbe 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -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)