Skip to content

Commit

Permalink
Move modification message to function that does it
Browse files Browse the repository at this point in the history
  • Loading branch information
eest committed Sep 26, 2024
1 parent bae38e9 commit 5e783a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,10 +1422,6 @@ minimiserLoop:
continue
}

if edm.debug {
edm.log.Debug("dnstapMinimiser.runMinimiser: modifying dnstap message", "minimiser_id", minimiserID)
}

// Keep around the unpseudonymised client IP for HLL
// data, be careful with logging or otherwise handling
// this IP as it is sensitive.
Expand Down Expand Up @@ -2084,6 +2080,10 @@ func certPoolFromFile(fileName string) (*x509.CertPool, error) {
func (edm *dnstapMinimiser) pseudonymiseDnstap(dt *dnstap.Dnstap) {
var err error

if edm.debug {
edm.log.Debug("pseudonymiseDnstap: modifying dnstap message")
}

// Lock is used here because the cryptopan instance can get updated at runtime.
edm.cryptopanMutex.RLock()

Expand Down

0 comments on commit 5e783a9

Please sign in to comment.