# HG changeset patch # User Goffi # Date 1638289646 -3600 # Node ID e3dddf65fa8887d952771012744badad80f1e0f7 # Parent 09112b1c3e05e36bede6616377a6660d83d4f947 core (xmpp): specify profile when logging a connection problem diff -r 09112b1c3e05 -r e3dddf65fa88 sat/core/xmpp.py --- a/sat/core/xmpp.py Fri Nov 12 17:18:23 2021 +0100 +++ b/sat/core/xmpp.py Tue Nov 30 17:27:26 2021 +0100 @@ -385,9 +385,7 @@ # 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)