changeset 3979:996e0f84935e

component AP gateway: log at debug level instead of warning when no client is set
author Goffi <goffi@goffi.org>
date Tue, 15 Nov 2022 18:02:16 +0100
parents 97fbe11c4476
children 9b5092225e46
files sat/plugins/plugin_comp_ap_gateway/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_ap_gateway/__init__.py	Fri Nov 11 13:51:22 2022 +0100
+++ b/sat/plugins/plugin_comp_ap_gateway/__init__.py	Tue Nov 15 18:02:16 2022 +0100
@@ -2177,8 +2177,8 @@
         post_treat: defer.Deferred
     ) -> bool:
         """add the gateway workflow on post treatment"""
-        if not self.client:
-            log.warning(f"no client set, ignoring message: {message_elt.toXml()}")
+        if self.client is None:
+            log.debug(f"no client set, ignoring message: {message_elt.toXml()}")
             return True
         post_treat.addCallback(
             lambda mess_data: defer.ensureDeferred(self.onMessage(client, mess_data))