aboutsummaryrefslogtreecommitdiff
path: root/ldapserver/route.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-26 19:47:38 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-26 19:47:38 +0100
commit94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c (patch)
tree7d0ed0515b5973591c64c7c9b4579b5575ac2010 /ldapserver/route.go
parentc1f0247586c98bbdfc42c4a8db3410d34dfbc500 (diff)
downloadbottin-94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c.tar.gz
bottin-94eafa2a9ba34d2cbcd678fff5a0dcbfcfa40e7c.zip
Less logs but better logs
Diffstat (limited to 'ldapserver/route.go')
-rw-r--r--ldapserver/route.go9
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)