mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-16 09:29:44 -07:00
optimization: check IsLoggingRawIO before attempting to log input
This commit is contained in:
+3
-1
@@ -315,7 +315,9 @@ func (client *Client) run() {
|
||||
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:
|
||||
if firstLine {
|
||||
|
||||
Reference in New Issue
Block a user