From 2ecd664b9e07a22691042d3b290102ac609bc7d0 Mon Sep 17 00:00:00 2001 From: Oleksandr Grytsov Date: Thu, 15 Feb 2024 11:48:11 +0200 Subject: [PATCH] [vchanmanager] Add log to see SM outgoing messages Signed-off-by: Oleksandr Grytsov --- vchanmanager/vchanmanager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vchanmanager/vchanmanager.go b/vchanmanager/vchanmanager.go index 00c1202..59b8cc1 100644 --- a/vchanmanager/vchanmanager.go +++ b/vchanmanager/vchanmanager.go @@ -405,14 +405,15 @@ func (v *VChanManager) handleSMOutgoingMessages(ctx context.Context, msg Message return false } + log.WithFields(log.Fields{ + "type": reflect.TypeOf(outgoingMessage.GetSMOutgoingMessage())}).Debug("Receive SM outgoing message") + switch smMessage := outgoingMessage.GetSMOutgoingMessage().(type) { case *pbSM.SMOutgoingMessages_ImageContentRequest: go v.handleImageContentRequest(ctx, *smMessage, vchan, errCh) return true case *pbSM.SMOutgoingMessages_ClockSyncRequest: - log.Debug("Receive clock sync request") - clockSync := &pbSM.SMIncomingMessages{ SMIncomingMessage: &pbSM.SMIncomingMessages_ClockSync{ ClockSync: &pbSM.ClockSync{