Browse Source

Encoding errors must be logged

main
Quentin 3 months ago
parent
commit
2a844bd559
Signed by: quentin GPG Key ID: A98E9B769E4FF428
  1. 5
      ldapserver/client.go

5
ldapserver/client.go

@ -206,7 +206,10 @@ func (c *client) close() {
}
func (c *client) writeMessage(m *ldap.LDAPMessage) {
data, _ := m.Write()
data, err := m.Write()
if err != nil {
Logger.Errorf("bottin: unable to marshal response message: %v", err)
}
//Logger.Printf(">>> %d - %s - hex=%x", c.Numero, m.ProtocolOpName(), data.Bytes())
Logger.Tracef(">>> [%d] %#v", c.Numero, m)

Loading…
Cancel
Save