3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00
This commit is contained in:
Shivaram Lingamneni 2019-02-05 18:22:00 -05:00
parent 8eefe869d0
commit 7608e0c76c
2 changed files with 13 additions and 11 deletions

View File

@ -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 // prolly don't need to alert snomasks on this, only on connection reg
NewClient(server, conn.Conn, conn.IsTLS) NewClient(server, conn.Conn, conn.IsTLS)
@ -421,7 +421,7 @@ func (server *Server) tryRegister(c *Client) {
server.stats.ChangeTotal(1) server.stats.ChangeTotal(1)
// continue registration // 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)) 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 // "register"; this includes the initial phase of session resumption

View File

@ -98,7 +98,7 @@ server:
allow-plaintext-resume: false allow-plaintext-resume: false
# maximum length of clients' sendQ in bytes # 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 max-sendq: 16k
# maximum number of connections per subnet # maximum number of connections per subnet
@ -354,10 +354,11 @@ logging:
# file log to given target filename # file log to given target filename
# stdout log to stdout # stdout log to stdout
# stderr log to stderr # 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 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 # type(s) of logs to keep here. you can use - to exclude those types
# #
@ -374,15 +375,16 @@ logging:
# password password hashing and comparing # password password hashing and comparing
# userinput raw lines sent by users # userinput raw lines sent by users
# useroutput raw lines sent to users # useroutput raw lines sent to users
type: "* -userinput -useroutput -localconnect -localconnect-ip" type: "* -userinput -useroutput"
# one of: debug info warn error # one of: debug info warn error
level: info level: info
- #-
# avoid logging IP addresses to file # # example of a file log that avoids logging IP addresses
method: stderr # method: file
type: localconnect localconnect-ip # filename: ircd.log
level: debug # type: "* -userinput -useroutput -localconnect -localconnect-ip"
# level: debug
# debug options # debug options
debug: debug: