Mercurial > libervia-backend
comparison sat/plugins/plugin_comp_ap_gateway/__init__.py @ 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 | 6fa4ca0c047e |
children | 69d970f974ff |
comparison
equal
deleted
inserted
replaced
3978:97fbe11c4476 | 3979:996e0f84935e |
---|---|
2175 client: SatXMPPEntity, | 2175 client: SatXMPPEntity, |
2176 message_elt: domish.Element, | 2176 message_elt: domish.Element, |
2177 post_treat: defer.Deferred | 2177 post_treat: defer.Deferred |
2178 ) -> bool: | 2178 ) -> bool: |
2179 """add the gateway workflow on post treatment""" | 2179 """add the gateway workflow on post treatment""" |
2180 if not self.client: | 2180 if self.client is None: |
2181 log.warning(f"no client set, ignoring message: {message_elt.toXml()}") | 2181 log.debug(f"no client set, ignoring message: {message_elt.toXml()}") |
2182 return True | 2182 return True |
2183 post_treat.addCallback( | 2183 post_treat.addCallback( |
2184 lambda mess_data: defer.ensureDeferred(self.onMessage(client, mess_data)) | 2184 lambda mess_data: defer.ensureDeferred(self.onMessage(client, mess_data)) |
2185 ) | 2185 ) |
2186 return True | 2186 return True |