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