Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Nov 27, 2024
1 parent acaf981 commit 614d897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion service/firewall/interception/dnsmonitor/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 614d897

Please sign in to comment.