Change some Printf's to Debugf's
This commit is contained in:
parent
f32c272db2
commit
adc5ecdbbc
2 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@ job "directory" {
|
||||||
task "server" {
|
task "server" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "lxpz/bottin_amd64:6"
|
image = "lxpz/bottin_amd64:7"
|
||||||
readonly_rootfs = true
|
readonly_rootfs = true
|
||||||
port_map {
|
port_map {
|
||||||
ldap_port = 389
|
ldap_port = 389
|
||||||
|
|
|
@ -65,7 +65,7 @@ func (c *client) serve() {
|
||||||
c.closing = make(chan bool)
|
c.closing = make(chan bool)
|
||||||
if onc := c.srv.OnNewConnection; onc != nil {
|
if onc := c.srv.OnNewConnection; onc != nil {
|
||||||
if err := onc(c.rwc); err != nil {
|
if err := onc(c.rwc); err != nil {
|
||||||
Logger.Printf("Erreur OnNewConnection: %s", err)
|
Logger.Debugf("Error OnNewConnection: %s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,9 +120,9 @@ func (c *client) serve() {
|
||||||
messagePacket, err := c.ReadPacket()
|
messagePacket, err := c.ReadPacket()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if opErr, ok := err.(*net.OpError); ok && opErr.Timeout() {
|
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 {
|
} else {
|
||||||
Logger.Printf("Error readMessagePacket: %s", err)
|
Logger.Debugf("Error readMessagePacket: %s", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ func (c *client) serve() {
|
||||||
message, err := messagePacket.readMessage()
|
message, err := messagePacket.readMessage()
|
||||||
|
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue