chore: reduce amount of logs

This commit is contained in:
Oleh Astappiev 2024-12-08 21:27:15 +01:00
parent c4c1a15b00
commit 36b6a7774e
No known key found for this signature in database
GPG key ID: 37D7AC22589E9632
2 changed files with 3 additions and 5 deletions

View file

@ -135,15 +135,13 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
if !h.isDisabled {
err := h.connect(ctx, config)
if err != nil {
h.error(err.Error())
h.error("unable to connect to Umami, the plugin is disabled")
h.error("unable to connect to Umami, the plugin is disabled: " + err.Error())
h.isDisabled = true
}
err = h.verifyConfig(config)
if err != nil {
h.error(err.Error())
h.error("configuration error, the plugin is disabled")
h.error("configuration error, the plugin is disabled: " + err.Error())
h.isDisabled = true
}

View file

@ -94,7 +94,7 @@ func (h *UmamiFeeder) umamiEventFeeder(ctx context.Context) (err error) {
// Wait for event.
select {
case <-ctx.Done():
h.error("worker shutting down (canceled)")
h.debug("worker shutting down (canceled)")
return nil
case event := <-h.queue: