From c8326e24d20bf38f242135032e782d0a4d107ab2 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 15 Nov 2022 18:02:16 +0100 Subject: [PATCH] component AP gateway: log at debug level instead of warning when no client is set --- sat/plugins/plugin_comp_ap_gateway/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat/plugins/plugin_comp_ap_gateway/__init__.py b/sat/plugins/plugin_comp_ap_gateway/__init__.py index e25a879c..aa8ab247 100644 --- a/sat/plugins/plugin_comp_ap_gateway/__init__.py +++ b/sat/plugins/plugin_comp_ap_gateway/__init__.py @@ -2177,8 +2177,8 @@ class APGateway: 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))