Kaynağa Gözat

use the rehash log category consistently

tags/v1.0.0-rc1
Shivaram Lingamneni 5 yıl önce
ebeveyn
işleme
6402a69fb9
2 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 4
    4
      irc/server.go
  2. 1
    0
      oragono.yaml

+ 4
- 4
irc/server.go Dosyayı Görüntüle

887
 
887
 
888
 	_, err := os.Stat(config.Datastore.Path)
888
 	_, err := os.Stat(config.Datastore.Path)
889
 	if os.IsNotExist(err) {
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
 		err = initializeDB(config.Datastore.Path)
891
 		err = initializeDB(config.Datastore.Path)
892
 		if err != nil {
892
 		if err != nil {
893
 			return err
893
 			return err
902
 	}
902
 	}
903
 
903
 
904
 	// load *lines (from the datastores)
904
 	// load *lines (from the datastores)
905
-	server.logger.Debug("startup", "Loading D/Klines")
905
+	server.logger.Debug("rehash", "Loading D/Klines")
906
 	server.loadDLines()
906
 	server.loadDLines()
907
 	server.loadKLines()
907
 	server.loadKLines()
908
 
908
 
974
 	}
974
 	}
975
 
975
 
976
 	if len(tlsListeners) == 0 {
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
 	var usesStandardTLSPort bool
980
 	var usesStandardTLSPort bool
985
 		}
985
 		}
986
 	}
986
 	}
987
 	if 0 < len(tlsListeners) && !usesStandardTLSPort {
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
 	return
991
 	return

+ 1
- 0
oragono.yaml Dosyayı Görüntüle

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

Loading…
İptal
Kaydet