aboutsummaryrefslogtreecommitdiff
path: root/ldapserver
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-02 16:51:23 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-02 16:51:23 +0100
commitadc5ecdbbcfa1d176ed72fba5f750d1797c48ce4 (patch)
tree9c4c0dfb9b9d32dd37a78a194a6436388d120608 /ldapserver
parentf32c272db27d9b99f7ae6b4663af3ee775b5676b (diff)
downloadbottin-adc5ecdbbcfa1d176ed72fba5f750d1797c48ce4.tar.gz
bottin-adc5ecdbbcfa1d176ed72fba5f750d1797c48ce4.zip
Change some Printf's to Debugf's
Diffstat (limited to 'ldapserver')
-rw-r--r--ldapserver/client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldapserver/client.go b/ldapserver/client.go
index 706f908..91a5980 100644
--- a/ldapserver/client.go
+++ b/ldapserver/client.go
@@ -65,7 +65,7 @@ func (c *client) serve() {
c.closing = make(chan bool)
if onc := c.srv.OnNewConnection; onc != nil {
if err := onc(c.rwc); err != nil {
- Logger.Printf("Erreur OnNewConnection: %s", err)
+ Logger.Debugf("Error OnNewConnection: %s", err)
return
}
}
@@ -120,9 +120,9 @@ func (c *client) serve() {
messagePacket, err := c.ReadPacket()
if err != nil {
if opErr, ok := err.(*net.OpError); ok && opErr.Timeout() {
- Logger.Printf("Sorry client %d, i can not wait anymore (reading timeout) ! %s", c.Numero, err)
+ Logger.Debugf("Sorry client %d, i can not wait anymore (reading timeout) ! %s", c.Numero, err)
} else {
- Logger.Printf("Error readMessagePacket: %s", err)
+ Logger.Debugf("Error readMessagePacket: %s", err)
}
return
}
@@ -131,7 +131,7 @@ func (c *client) serve() {
message, err := messagePacket.readMessage()
if err != nil {
- Logger.Printf("Error reading Message : %s\n\t%x", err.Error(), messagePacket.bytes)
+ Logger.Debugf("Error reading Message : %s\n\t%x", err.Error(), messagePacket.bytes)
continue
}