aboutsummaryrefslogtreecommitdiff
path: root/ldapserver/server.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-01 15:05:44 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-01 15:05:44 +0100
commitda2c37bb955bbdfceb95bbcc48e1267716152804 (patch)
treee04a071472b81af6713d7107cdebce66ec217de2 /ldapserver/server.go
parentc3bfcdf9a1c80b9ed27840f203cf3f14ef0bb113 (diff)
downloadbottin-da2c37bb955bbdfceb95bbcc48e1267716152804.tar.gz
bottin-da2c37bb955bbdfceb95bbcc48e1267716152804.zip
Better logging
Diffstat (limited to 'ldapserver/server.go')
-rw-r--r--ldapserver/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldapserver/server.go b/ldapserver/server.go
index 3640d0a..d4f2128 100644
--- a/ldapserver/server.go
+++ b/ldapserver/server.go
@@ -36,7 +36,7 @@ func NewServer() *Server {
// If a handler already exists for pattern, Handle panics
func (s *Server) Handle(h Handler) {
if s.Handler != nil {
- panic("LDAP: multiple Handler registrations")
+ Logger.Fatal("LDAP: multiple Handler registrations")
}
s.Handler = h
}