mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
more logging
This commit is contained in:
parent
541a40b056
commit
dcc40bbac1
@ -135,7 +135,7 @@ func (client *Client) Destroy() {
|
||||
}
|
||||
|
||||
if DEBUG_CLIENT {
|
||||
log.Printf("%s.Destroy", client)
|
||||
log.Printf("%s destroying", client)
|
||||
}
|
||||
|
||||
client.destroyed = true
|
||||
@ -159,13 +159,16 @@ func (client *Client) Destroy() {
|
||||
|
||||
client.server.clients.Remove(client)
|
||||
|
||||
if DEBUG_CLIENT {
|
||||
log.Printf("%s destroyed", client)
|
||||
}
|
||||
}
|
||||
|
||||
func (client *Client) Reply(replies ...Reply) {
|
||||
for _, reply := range replies {
|
||||
if client.replies == nil {
|
||||
if DEBUG_CLIENT {
|
||||
log.Printf("%s.Reply: dropped: %s", client, reply)
|
||||
log.Printf("%s dropped %s", client, reply)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user