From 68092dd2bb414b8da5f7feb21dee097cee846327 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 30 Nov 2021 17:27:26 +0100 Subject: [PATCH] core (xmpp): specify profile when logging a connection problem --- sat/core/xmpp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)