mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-26 23:16:35 +08:00
不提示单个端口Reload信息,防止不重要的日志过多
This commit is contained in:
@@ -124,7 +124,7 @@ func (this *ListenerManager) Start(node *nodeconfigs.NodeConfig) error {
|
||||
addr := group.FullAddr()
|
||||
listener, ok := this.listenersMap[addr]
|
||||
if ok {
|
||||
remotelogs.Println("LISTENER_MANAGER", "reload '"+this.prettyAddress(addr)+"'")
|
||||
// 不需要打印reload信息,防止日志数量过多
|
||||
listener.Reload(group)
|
||||
} else {
|
||||
remotelogs.Println("LISTENER_MANAGER", "listen '"+this.prettyAddress(addr)+"'")
|
||||
|
||||
@@ -602,9 +602,9 @@ func (this *Node) syncConfig(taskVersion int64) error {
|
||||
|
||||
// 刷新配置
|
||||
if this.isLoaded {
|
||||
remotelogs.Println("NODE", "reloading config ...")
|
||||
remotelogs.Println("NODE", "reloading node config ...")
|
||||
} else {
|
||||
remotelogs.Println("NODE", "loading config ...")
|
||||
remotelogs.Println("NODE", "loading node config ...")
|
||||
}
|
||||
|
||||
this.onReload(nodeConfig, true)
|
||||
|
||||
Reference in New Issue
Block a user