Skip to content

Commit 0cd2ab4

Browse files
committed
device-agent: log when fail to trigger status update
1 parent 877997c commit 0cd2ab4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/device-agent/statemachine/state_machine.go

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func (sm *StateMachine) triggerStatusUpdate() {
7575
select {
7676
case sm.statusUpdates <- sm.current.state.Status():
7777
default:
78+
sm.logger.Warn("failed to trigger status update, channel full")
7879
}
7980
}
8081

0 commit comments

Comments
 (0)