chore: reduce amount of logs
This commit is contained in:
parent
c4c1a15b00
commit
36b6a7774e
2 changed files with 3 additions and 5 deletions
6
umami.go
6
umami.go
|
|
@ -135,15 +135,13 @@ func New(ctx context.Context, next http.Handler, config *Config, name string) (h
|
||||||
if !h.isDisabled {
|
if !h.isDisabled {
|
||||||
err := h.connect(ctx, config)
|
err := h.connect(ctx, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
h.error(err.Error())
|
h.error("unable to connect to Umami, the plugin is disabled: " + err.Error())
|
||||||
h.error("unable to connect to Umami, the plugin is disabled")
|
|
||||||
h.isDisabled = true
|
h.isDisabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
err = h.verifyConfig(config)
|
err = h.verifyConfig(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
h.error(err.Error())
|
h.error("configuration error, the plugin is disabled: " + err.Error())
|
||||||
h.error("configuration error, the plugin is disabled")
|
|
||||||
h.isDisabled = true
|
h.isDisabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ func (h *UmamiFeeder) umamiEventFeeder(ctx context.Context) (err error) {
|
||||||
// Wait for event.
|
// Wait for event.
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
h.error("worker shutting down (canceled)")
|
h.debug("worker shutting down (canceled)")
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case event := <-h.queue:
|
case event := <-h.queue:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue