mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-12 15:53:31 -07:00
more logging
This commit is contained in:
+5
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user