Skip to content

Commit d1577e7

Browse files
committed
connection lost: don't notify, just log
1 parent 39c6476 commit d1577e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/device-agent/states/connected/connected.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (c *Connected) Enter(ctx context.Context) statemachine.Event {
109109
c.rc.SetToken(nil)
110110
return statemachine.EventDisconnect
111111
case errors.Is(e, ErrLostConnection):
112-
c.notifier.Infof("Lost connection, reconnecting..")
112+
c.logger.Infof("Lost connection, reconnecting..")
113113
attempt = 0
114114
case errors.Is(e, context.Canceled):
115115
// we got cancelled (shutdown or disconnect event)

0 commit comments

Comments
 (0)