From 614d8972a25a6d7f0038fbd7ecdc1b22b18bd8b8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Nov 2024 16:37:59 +0100 Subject: [PATCH] Improve logging --- .../firewall/interception/dnsmonitor/eventlistener_linux.go | 3 ++- service/firewall/interception/dnsmonitor/module.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/service/firewall/interception/dnsmonitor/eventlistener_linux.go b/service/firewall/interception/dnsmonitor/eventlistener_linux.go index d987a0823..6e9bb3ee1 100644 --- a/service/firewall/interception/dnsmonitor/eventlistener_linux.go +++ b/service/firewall/interception/dnsmonitor/eventlistener_linux.go @@ -10,10 +10,11 @@ import ( "os" "github.com/miekg/dns" + "github.com/varlink/go/varlink" + "github.com/safing/portmaster/base/log" "github.com/safing/portmaster/service/mgr" "github.com/safing/portmaster/service/resolver" - "github.com/varlink/go/varlink" ) type Listener struct { diff --git a/service/firewall/interception/dnsmonitor/module.go b/service/firewall/interception/dnsmonitor/module.go index eed8be119..974429f74 100644 --- a/service/firewall/interception/dnsmonitor/module.go +++ b/service/firewall/interception/dnsmonitor/module.go @@ -6,6 +6,7 @@ import ( "strings" "github.com/miekg/dns" + "github.com/safing/portmaster/base/database" "github.com/safing/portmaster/base/log" "github.com/safing/portmaster/service/compat" @@ -38,7 +39,7 @@ func (dl *DNSMonitor) Start() error { var err error dl.listener, err = newListener(dl) if err != nil { - log.Errorf("dnsmonitor: failed to start dns listener: %s", err) + log.Warningf("dnsmonitor: failed to start dns listener: %s", err) } return nil