diff options
author | Alex Auvolat <alex@adnab.me> | 2020-01-26 19:47:38 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-01-26 19:47:38 +0100 |
commit | 94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c (patch) | |
tree | 7d0ed0515b5973591c64c7c9b4579b5575ac2010 /ldapserver/route.go | |
parent | c1f0247586c98bbdfc42c4a8db3410d34dfbc500 (diff) | |
download | bottin-94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c.tar.gz bottin-94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c.zip |
Less logs but better logs
Diffstat (limited to 'ldapserver/route.go')
-rw-r--r-- | ldapserver/route.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ldapserver/route.go b/ldapserver/route.go index d5bd00a..ec09f7d 100644 --- a/ldapserver/route.go +++ b/ldapserver/route.go @@ -148,10 +148,11 @@ func (h *RouteMux) ServeLDAP(s UserState, w ResponseWriter, r *Message) { } if route.label != "" { - Logger.Printf("") - Logger.Printf(" ROUTE MATCH ; %s", route.label) - Logger.Printf("") - // Logger.Printf(" ROUTE MATCH ; %s", runtime.FuncForPC(reflect.ValueOf(route.handler).Pointer()).Name()) + if DEBUG { + Logger.Printf("") + Logger.Printf(" ROUTE MATCH ; %s", route.label) + Logger.Printf("") + } } route.handler(s, w, r) |