Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Reduce lifecycle logging verbosity (#10)
Browse files Browse the repository at this point in the history
This change reduces the reporter lifecycle logging message to
debug-level criticity, as it is annoying for software that use the
reporter to pollute its logs with unnecessary messages in nominal
situation.
  • Loading branch information
falzm authored Jan 28, 2020
1 parent 111d297 commit 980494c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ func (r *Reporter) Start() error {
// Stop will stop reporting and clean the associated resources.
func (r *Reporter) Stop() error {
if r.sentry != nil {
r.Info("shutting down Sentry subsystem")
r.Debug("shutting down Sentry subsystem")
r.sentry.Wait()
r.sentry.Close()
}
if r.metrics != nil {
r.Info("shutting down metric subsystem")
r.Debug("shutting down metric subsystem")
err := r.metrics.Stop()
if err != nil {
_ = r.Error(err, "fail to stop the metric reporter")
}
}
r.Info("stop reporting")
r.Debug("stop reporting")
return nil
}

0 comments on commit 980494c

Please sign in to comment.