We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32bb30e commit 9fb72b9Copy full SHA for 9fb72b9
1 file changed
pkg/networkpolicy/dnsagent.go
@@ -86,7 +86,9 @@ func (n *DomainCache) Run(ctx context.Context) error {
86
logger.Error(err, "Can not process packet")
87
return 0
88
}
89
- defer logger.V(2).Info("Finished syncing packet", "id", *a.PacketID, "duration", time.Since(startTime))
+ defer func() {
90
+ logger.V(2).Info("Finished syncing packet", "id", *a.PacketID, "duration", time.Since(startTime))
91
+ }()
92
93
// Just print out the payload of the nflog packet
94
logger.V(4).Info("Evaluating packet", "packet", packet)
0 commit comments