mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
log: improve logging
- add a panic recovery handler
- add logs on unexpected error paths
- use logger's panic method
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/anuvu/zot/errors"
|
||||
"github.com/anuvu/zot/pkg/log"
|
||||
"github.com/jtblin/go-ldap-client"
|
||||
"github.com/rs/zerolog"
|
||||
goldap "gopkg.in/ldap.v2"
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ type LDAPClient struct {
|
||||
ldap.LDAPClient
|
||||
subtreeSearch bool
|
||||
clientCAs *x509.CertPool
|
||||
log zerolog.Logger
|
||||
log log.Logger
|
||||
}
|
||||
|
||||
// Connect connects to the ldap backend.
|
||||
|
||||
Reference in New Issue
Block a user