Browse Source

use the rehash log category consistently

tags/v1.0.0-rc1
Shivaram Lingamneni 5 years ago
parent
commit
6402a69fb9
2 changed files with 5 additions and 4 deletions
  1. 4
    4
      irc/server.go
  2. 1
    0
      oragono.yaml

+ 4
- 4
irc/server.go View File

@@ -887,7 +887,7 @@ func (server *Server) loadDatastore(config *Config) error {
887 887
 
888 888
 	_, err := os.Stat(config.Datastore.Path)
889 889
 	if os.IsNotExist(err) {
890
-		server.logger.Warning("startup", "database does not exist, creating it", config.Datastore.Path)
890
+		server.logger.Warning("rehash", "database does not exist, creating it", config.Datastore.Path)
891 891
 		err = initializeDB(config.Datastore.Path)
892 892
 		if err != nil {
893 893
 			return err
@@ -902,7 +902,7 @@ func (server *Server) loadDatastore(config *Config) error {
902 902
 	}
903 903
 
904 904
 	// load *lines (from the datastores)
905
-	server.logger.Debug("startup", "Loading D/Klines")
905
+	server.logger.Debug("rehash", "Loading D/Klines")
906 906
 	server.loadDLines()
907 907
 	server.loadKLines()
908 908
 
@@ -974,7 +974,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
974 974
 	}
975 975
 
976 976
 	if len(tlsListeners) == 0 {
977
-		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")
977
+		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")
978 978
 	}
979 979
 
980 980
 	var usesStandardTLSPort bool
@@ -985,7 +985,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
985 985
 		}
986 986
 	}
987 987
 	if 0 < len(tlsListeners) && !usesStandardTLSPort {
988
-		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")
988
+		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")
989 989
 	}
990 990
 
991 991
 	return

+ 1
- 0
oragono.yaml View File

@@ -340,6 +340,7 @@ logging:
340 340
         #   commands        command calling and operations
341 341
         #   opers           oper actions, authentication, etc
342 342
         #   password        password hashing and comparing
343
+        #   rehash          server startup and rehash events
343 344
         #   userinput       raw lines sent by users
344 345
         #   useroutput      raw lines sent to users
345 346
         type: "* -userinput -useroutput -localconnect -localconnect-ip"

Loading…
Cancel
Save