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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue