optimization: check IsLoggingRawIO before attempting to log input

This commit is contained in:
Shivaram Lingamneni 2018-10-28 15:44:13 -04:00
parent f790a910cd
commit 7018e3693b
1 changed files with 3 additions and 1 deletions

View File

@ -315,7 +315,9 @@ func (client *Client) run() {
break
}
if client.server.logger.IsLoggingRawIO() {
client.server.logger.Debug("userinput", client.nick, "<- ", line)
}
// special-cased handling of PROXY protocol, see `handleProxyCommand` for details:
if firstLine {