mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +01:00
logging: Reverse arrows for in and out, in ~= left, out ~= right
This commit is contained in:
parent
b328a4fcd3
commit
5de03f2169
@ -170,7 +170,7 @@ func (client *Client) run() {
|
||||
|
||||
maxlenTags, maxlenRest := client.maxlens()
|
||||
|
||||
client.server.logger.Log(LogDebug, "userinput ", client.nick, " ->", line)
|
||||
client.server.logger.Log(LogDebug, "userinput ", client.nick, "<- ", line)
|
||||
|
||||
msg, err = ircmsg.ParseLineMaxLen(line, maxlenTags, maxlenRest)
|
||||
if err == ircmsg.ErrorLineIsEmpty {
|
||||
@ -595,7 +595,7 @@ func (client *Client) Send(tags *map[string]ircmsg.TagValue, prefix string, comm
|
||||
line = line[:len(line)-3] + "\r\n"
|
||||
}
|
||||
|
||||
client.server.logger.Log(LogDebug, "useroutput", client.nick, "<- ", strings.TrimRight(line, "\r\n"))
|
||||
client.server.logger.Log(LogDebug, "useroutput", client.nick, " ->", strings.TrimRight(line, "\r\n"))
|
||||
|
||||
client.socket.Write(line)
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user