Skip to content

Commit

Permalink
[vchanmanager] Add log to see SM outgoing messages
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Grytsov <[email protected]>
  • Loading branch information
al1img committed Feb 15, 2024
1 parent fff46f6 commit 2ecd664
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vchanmanager/vchanmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check failure on line 409 in vchanmanager/vchanmanager.go

View workflow job for this annotation

GitHub Actions / tests

File is not `gofumpt`-ed (gofumpt)

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{
Expand Down

0 comments on commit 2ecd664

Please sign in to comment.