Skip to content

Commit fdbb93b

Browse files
authored
The Logging Network policy handlers is independent of the log level
The intention is that the consumer uses the logging handler at the log level they please, by inserting it in the pipeline. Hence, the logging handler should not make any assumption about verbosity levels Spotted by @danwinship in kubernetes-sigs/kindnet#11 (comment)
1 parent 3276097 commit fdbb93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/networkpolicy/logging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func logPacket(ctx context.Context, direction string, p *network.Packet, srcPod,
6464
dstPodStr = dstPod.Namespace.Name + "/" + dstPod.Name
6565
}
6666

67-
logger.V(2).Info("Evaluating packet",
67+
logger.Info("Evaluating packet",
6868
"direction", direction,
6969
"srcPod", srcPodStr,
7070
"dstPod", dstPodStr,

0 commit comments

Comments
 (0)