fix: update log level check in logDNSEvent to use LevelInfo for improved logging

This commit is contained in:
Daniel Lavrushin 2026-08-08 15:01:08 +02:00 committed by Daniel Lavrushin
parent a2b9c816ae
commit 8b8286b88f

View file

@ -112,7 +112,7 @@ func dnsRedirectAction(set *config.SetConfig) string {
}
func logDNSEvent(proto string, set *config.SetConfig, domain string, clientIP, serverIP net.IP, clientPort uint16, srcMac, action string) {
if log.Level(log.CurLevel.Load()) < log.LevelTrace {
if log.Level(log.CurLevel.Load()) < log.LevelInfo {
return
}
if clientIP == nil || serverIP == nil {