mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
optimization: check IsLoggingRawIO before attempting to log input
This commit is contained in:
parent
f790a910cd
commit
7018e3693b
@ -315,7 +315,9 @@ func (client *Client) run() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
client.server.logger.Debug("userinput", client.nick, "<- ", line)
|
if client.server.logger.IsLoggingRawIO() {
|
||||||
|
client.server.logger.Debug("userinput", client.nick, "<- ", line)
|
||||||
|
}
|
||||||
|
|
||||||
// special-cased handling of PROXY protocol, see `handleProxyCommand` for details:
|
// special-cased handling of PROXY protocol, see `handleProxyCommand` for details:
|
||||||
if firstLine {
|
if firstLine {
|
||||||
|
Loading…
Reference in New Issue
Block a user