From 980494c6e9eaa9817bda924284a2561bcc78ddb7 Mon Sep 17 00:00:00 2001 From: Marc Falzon Date: Tue, 28 Jan 2020 18:14:54 +0100 Subject: [PATCH] Reduce lifecycle logging verbosity (#10) 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. --- root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root.go b/root.go index fa70e76..3478a71 100644 --- a/root.go +++ b/root.go @@ -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 }