mirror of https://github.com/tidwall/evio.git
trace
This commit is contained in:
parent
ac831bf3e5
commit
26d266b70e
|
@ -41,7 +41,9 @@ func main() {
|
|||
return
|
||||
}
|
||||
events.Data = func(id int, in []byte) (out []byte, action evio.Action) {
|
||||
log.Printf("%s", strings.TrimSpace(string(in)))
|
||||
if trace {
|
||||
log.Printf("%s", strings.TrimSpace(string(in)))
|
||||
}
|
||||
out = in
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue