mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
more logging
This commit is contained in:
parent
541a40b056
commit
dcc40bbac1
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue