Skip to content

Commit

Permalink
adding extra debug logging message when connector -> api server commu…
Browse files Browse the repository at this point in the history
…nication fails. Helps to debug issues like #220
  • Loading branch information
AnalogJ committed May 2, 2022
1 parent 7a1a581 commit f930c90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector/pkg/collector/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (mc *MetricsCollector) Run() error {

if !deviceRespWrapper.Success {
mc.logger.Errorln("An error occurred while retrieving filtered devices")
mc.logger.Debugln(deviceRespWrapper)
return errors.ApiServerCommunicationError("An error occurred while retrieving filtered devices")
} else {
mc.logger.Debugln(deviceRespWrapper)
Expand Down

0 comments on commit f930c90

Please sign in to comment.