Commit 989c19f
authored
Fix format string bug in GetPodMTU error logging (#3471)
Changed error log in GetPodMTU to use podMTU (string input) instead of
mtu (int result) when logging parse failures.
This fixes the format string mismatch that causes:
{"level":"error","ts":"2025-10-02T23:03:58.442+0200","caller":"routed-eni-cni-plugin/cni.go:163","msg":"Failed to parse pod MTU %!s(int=0): strconv.Atoi: parsing \"\": invalid syntax"}
in the output of "make unit-test".1 parent 5c08a6f commit 989c19f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | | - | |
| 1391 | + | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
| |||
0 commit comments