3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 20:09:41 +01:00

use the rehash log category consistently

This commit is contained in:
Shivaram Lingamneni 2018-12-31 01:39:58 -05:00
parent 9e87d6dd10
commit 6402a69fb9
2 changed files with 5 additions and 4 deletions

View File

@ -887,7 +887,7 @@ func (server *Server) loadDatastore(config *Config) error {
_, err := os.Stat(config.Datastore.Path) _, err := os.Stat(config.Datastore.Path)
if os.IsNotExist(err) { if os.IsNotExist(err) {
server.logger.Warning("startup", "database does not exist, creating it", config.Datastore.Path) server.logger.Warning("rehash", "database does not exist, creating it", config.Datastore.Path)
err = initializeDB(config.Datastore.Path) err = initializeDB(config.Datastore.Path)
if err != nil { if err != nil {
return err return err
@ -902,7 +902,7 @@ func (server *Server) loadDatastore(config *Config) error {
} }
// load *lines (from the datastores) // load *lines (from the datastores)
server.logger.Debug("startup", "Loading D/Klines") server.logger.Debug("rehash", "Loading D/Klines")
server.loadDLines() server.loadDLines()
server.loadKLines() server.loadKLines()
@ -974,7 +974,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
} }
if len(tlsListeners) == 0 { if len(tlsListeners) == 0 {
server.logger.Warning("startup", "You are not exposing an SSL/TLS listening port. You should expose at least one port (typically 6697) to accept TLS connections") server.logger.Warning("rehash", "You are not exposing an SSL/TLS listening port. You should expose at least one port (typically 6697) to accept TLS connections")
} }
var usesStandardTLSPort bool var usesStandardTLSPort bool
@ -985,7 +985,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
} }
} }
if 0 < len(tlsListeners) && !usesStandardTLSPort { if 0 < len(tlsListeners) && !usesStandardTLSPort {
server.logger.Warning("startup", "Port 6697 is the standard TLS port for IRC. You should (also) expose port 6697 as a TLS port to ensure clients can connect securely") server.logger.Warning("rehash", "Port 6697 is the standard TLS port for IRC. You should (also) expose port 6697 as a TLS port to ensure clients can connect securely")
} }
return return

View File

@ -340,6 +340,7 @@ logging:
# commands command calling and operations # commands command calling and operations
# opers oper actions, authentication, etc # opers oper actions, authentication, etc
# password password hashing and comparing # password password hashing and comparing
# rehash server startup and rehash events
# 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 -localconnect -localconnect-ip"