Change "unable to route event" message log level to debug

After ZeroRPC finishes the handle of the call, it will try to reply OK
event to the caller. In fanout_cast/cast messages in sysinv-conductor
and sysinv-agent, there is no one registered to receive the response,
so it is expected to be discarded.

Change this log from warning to debug, since it occurs frequently and
is misleading log analysis in case of real issues.

TEST PLAN:
PASS: Verify STX Debian builds properly
PASS: Verify STX Debian deploys properly
PASS: Verify zerorpc-python package was properly installed
PASS: Verify syinv processes runs properly

Story: 2010087
Task: 46794

Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
Change-Id: Ie92671d06c7c8cda4d557c3a9a7859bad457231b
This commit is contained in:
Alyson Deives Pereira 2022-12-16 16:51:43 -03:00
parent ea54817768
commit 8c5a2577d2
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,34 @@
From 003b73552d280d68d42bef21d82fab66157fdf0a Mon Sep 17 00:00:00 2001
From: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
Date: Fri, 16 Dec 2022 16:40:00 -0300
Subject: [PATCH] Change "unable to route event" message log level to debug
After ZeroRPC finishes the handle of the call, it will try to reply OK
event to the caller. In fanout_cast/cast messages in sysinv-conductor
and sysinv-agent, there is no one registered to receive the response,
so it is discarded.
Change this log from warning to debug, since it occurs frequently and
is misleading log analysis in case of real issues.
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
---
zerorpc/channel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zerorpc/channel.py b/zerorpc/channel.py
index df77bc0..7ef1bb9 100644
--- a/zerorpc/channel.py
+++ b/zerorpc/channel.py
@@ -86,7 +86,7 @@ class ChannelMultiplexer(ChannelBase):
queue = self._broadcast_queue
if queue is None:
- logger.warning('zerorpc.ChannelMultiplexer,'
+ logger.debug('zerorpc.ChannelMultiplexer,'
' unable to route event: {0}'.format(
event.__str__(ignore_args=True)))
else:
--
2.25.1

View File

@ -5,3 +5,4 @@
0005-Fix-kwargs-when-internal-opts-are-present.patch
0006-Refactor-the-use-of-triggers-in-tests.patch
0007-Add-IPV6-support.patch
0008-Change-unable-to-route-event-message-log-level-to-de.patch