diff --git a/experimental/libbox/command_select.go b/experimental/libbox/command_select.go index 8d0901fb4b..f191d3a78f 100644 --- a/experimental/libbox/command_select.go +++ b/experimental/libbox/command_select.go @@ -55,7 +55,7 @@ func (s *CommandServer) handleSelectOutbound(conn net.Conn) error { if !selector.SelectOutbound(outboundTag) { return writeError(conn, E.New("outbound not found in selector: ", outboundTag)) } - log.Warn("Hiddify! Command Select", outboundTag) + log.Info("Hiddify! Command Select", outboundTag) s.urlTestUpdate.Update(2) return writeError(conn, nil) } diff --git a/outbound/urltest.go b/outbound/urltest.go index d76c4b50a5..69088be947 100644 --- a/outbound/urltest.go +++ b/outbound/urltest.go @@ -175,7 +175,7 @@ func (s *URLTest) ListenPacket(ctx context.Context, destination M.Socksaddr) (ne return s.group.interruptGroup.NewPacketConn(conn, interrupt.IsExternalConnectionFromContext(ctx)), nil } if !s.group.pauseManager.IsNetworkPaused() && s.group.udpConnectionFailureCount.IncrementConditionReset(MinFailureToReset) { - s.logger.Warn("Hiddify! UDP URLTest Outbound ", s.tag, " (", outboundToString(s.group.selectedOutboundUDP), ") failed to connect for ", MinFailureToReset, " times==> test proxies again!") + s.logger.Info("Hiddify! UDP URLTest Outbound ", s.tag, " (", outboundToString(s.group.selectedOutboundUDP), ") failed to connect for ", MinFailureToReset, " times==> test proxies again!") s.group.selectedOutboundUDP = nil s.group.urlTest(ctx, true) } diff --git a/outbound/wireguard.go b/outbound/wireguard.go index d9d38beb71..9987a5720f 100644 --- a/outbound/wireguard.go +++ b/outbound/wireguard.go @@ -210,7 +210,7 @@ func (w *WireGuard) Close() error { } func (w *WireGuard) InterfaceUpdated() { - w.logger.Warn("Hiddify! Wirguard! Interface updated!XXX") + w.logger.Info("Hiddify! Wirguard! Interface updated!XXX") // <-time.After(10 * time.Millisecond) // if true { // return @@ -265,7 +265,7 @@ func (w *WireGuard) InterfaceUpdated() { } func (w *WireGuard) onPauseUpdated(event int) { - w.logger.Warn("Hiddify! Wirguard! on Pause updated! event=", event) + w.logger.Info("Hiddify! Wirguard! on Pause updated! event=", event) // <-time.After(1000 * time.Millisecond) switch event { @@ -273,13 +273,13 @@ func (w *WireGuard) onPauseUpdated(event int) { w.device.Down() case pause.EventNetworkPause: //hiddify already handled in Interface Updated err := w.device.Down() - w.logger.Warn("Hiddify! Wirguard! downing net! err=", err) + w.logger.Info("Hiddify! Wirguard! downing net! err=", err) <-time.After(50 * time.Millisecond) case pause.EventDeviceWake: w.device.Up() case pause.EventNetworkWake: //hiddify already handled in Interface Updated err := w.device.Up() - w.logger.Warn("Hiddify! Wirguard! Uping net! err=", err) + w.logger.Info("Hiddify! Wirguard! Uping net! err=", err) <-time.After(50 * time.Millisecond) } } diff --git a/route/router.go b/route/router.go index 9d84d52e46..61e2fa4df5 100644 --- a/route/router.go +++ b/route/router.go @@ -1067,7 +1067,7 @@ func (r *Router) InterfaceFinder() control.InterfaceFinder { } func (r *Router) UpdateInterfaces() error { - r.logger.Warn("Hiddify!UpdateInterfaces ") + r.logger.Info("Hiddify!UpdateInterfaces ") if r.platformInterface == nil || !r.platformInterface.UsePlatformInterfaceGetter() { return r.interfaceFinder.update() } else { @@ -1170,7 +1170,7 @@ func (r *Router) NewError(ctx context.Context, err error) { } func (r *Router) notifyNetworkUpdate(event int) { - r.logger.Warn("Hiddify!notifyNetworkUpdate ", event) + r.logger.Info("Hiddify!notifyNetworkUpdate ", event) if event == tun.EventNoRoute { r.pauseManager.NetworkPause() r.logger.Error("missing default interface") @@ -1197,7 +1197,7 @@ func (r *Router) notifyNetworkUpdate(event int) { } func (r *Router) ResetNetwork() error { - r.logger.Warn("Hiddify!Reseting Network") + r.logger.Info("Hiddify!Reseting Network") conntrack.Close() for _, outbound := range r.sortedOutboundsByDependenciesHiddify {