3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

more logging

This commit is contained in:
Jeremy Latt 2014-02-13 19:49:31 -08:00
parent 6301d2b47f
commit 42ff4410ad

View File

@ -87,7 +87,7 @@ func (socket *Socket) readLines() {
func (socket *Socket) writeLines() { func (socket *Socket) writeLines() {
for line := range socket.send { for line := range socket.send {
if DEBUG_CLIENT { if DEBUG_NET {
log.Printf("%s ← %s", socket, line) log.Printf("%s ← %s", socket, line)
} }
if _, err := socket.writer.WriteString(line); socket.maybeLogWriteError(err) { if _, err := socket.writer.WriteString(line); socket.maybeLogWriteError(err) {