From 7608e0c76c1793222f94dc7e5c0445d6005a2ac0 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Tue, 5 Feb 2019 18:22:00 -0500 Subject: [PATCH] fix #121 --- irc/server.go | 4 ++-- oragono.yaml | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/irc/server.go b/irc/server.go index 57aa5ac7..4bc1d326 100644 --- a/irc/server.go +++ b/irc/server.go @@ -261,7 +261,7 @@ func (server *Server) acceptClient(conn clientConn) { } } - server.logger.Debug("localconnect-ip", fmt.Sprintf("Client connecting from %v", ipaddr)) + server.logger.Info("localconnect-ip", fmt.Sprintf("Client connecting from %v", ipaddr)) // prolly don't need to alert snomasks on this, only on connection reg NewClient(server, conn.Conn, conn.IsTLS) @@ -421,7 +421,7 @@ func (server *Server) tryRegister(c *Client) { server.stats.ChangeTotal(1) // continue registration - server.logger.Debug("localconnect", fmt.Sprintf("Client connected [%s] [u:%s] [r:%s]", c.nick, c.username, c.realname)) + server.logger.Info("localconnect", fmt.Sprintf("Client connected [%s] [u:%s] [r:%s]", c.nick, c.username, c.realname)) server.snomasks.Send(sno.LocalConnects, fmt.Sprintf("Client connected [%s] [u:%s] [h:%s] [ip:%s] [r:%s]", c.nick, c.username, c.rawHostname, c.IPString(), c.realname)) // "register"; this includes the initial phase of session resumption diff --git a/oragono.yaml b/oragono.yaml index a63e9475..38d222d5 100644 --- a/oragono.yaml +++ b/oragono.yaml @@ -98,7 +98,7 @@ server: allow-plaintext-resume: false # maximum length of clients' sendQ in bytes - # this should be big enough to hold /LIST and HELP replies + # this should be big enough to hold bursts of channel/direct messages max-sendq: 16k # maximum number of connections per subnet @@ -354,10 +354,11 @@ logging: # file log to given target filename # stdout log to stdout # stderr log to stderr - method: file stderr + # (you can specify multiple methods, e.g., to log to both stderr and a file) + method: stderr # filename to log to, if file method is selected - filename: ircd.log + # filename: ircd.log # type(s) of logs to keep here. you can use - to exclude those types # @@ -374,15 +375,16 @@ logging: # password password hashing and comparing # userinput raw lines sent by users # useroutput raw lines sent to users - type: "* -userinput -useroutput -localconnect -localconnect-ip" + type: "* -userinput -useroutput" # one of: debug info warn error level: info - - - # avoid logging IP addresses to file - method: stderr - type: localconnect localconnect-ip - level: debug + #- + # # example of a file log that avoids logging IP addresses + # method: file + # filename: ircd.log + # type: "* -userinput -useroutput -localconnect -localconnect-ip" + # level: debug # debug options debug: