Skip to content

Commit

Permalink
🧹 do not log error when checkin cannot be initialized (#1204)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Mar 27, 2024
1 parent ffade41 commit c4e26e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var serveCmd = &cobra.Command{

checkin, err := backgroundjob.NewCheckinPinger(ctx, client.HttpClient, client.ApiEndpoint, scanConf.AgentMrn, scanConf.runtime.UpstreamConfig, 2*time.Hour)
if err != nil {
log.Error().Err(err).Msg("could not initialize upstream check-in")
log.Debug().Err(err).Msg("could not initialize upstream check-in")
} else {
checkin.Start()
defer checkin.Stop()
Expand Down

0 comments on commit c4e26e4

Please sign in to comment.