Skip to content

Commit

Permalink
Add debug log when register/unregister provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Dec 19, 2023
1 parent 43b5aac commit eaa4ac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (p *provider) WebsocketLoop() {
p.log.Err(err).Msg("Failed to register provider")
break
}
p.log.Debug().Msg("Registered provider")

// Send back register response before setting the flag (ws is single writer)
response := registerCommandData{registerCode}
Expand Down Expand Up @@ -151,6 +152,7 @@ func (p *provider) WebsocketLoop() {
p.log.Info().Msg("Exit provider websocket loop")
if registerCode != "" {
UnregisterProvider(registerCode)
p.log.Debug().Msg("Unregistered provider")
}
}

Expand Down

0 comments on commit eaa4ac7

Please sign in to comment.