We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d31ea2 commit c851ec3Copy full SHA for c851ec3
cmd/cmd.go
@@ -279,6 +279,12 @@ func executeMain(cmd *cobra.Command, args []string) {
279
}
280
logging.Global().ApplyLogLevels(levels)
281
282
+ podNameParts := strings.Split(name, "-")
283
+ operatorID := podNameParts[len(podNameParts)-1]
284
+ logging.Global().RegisterWrappers(func(in *zerolog.Event) *zerolog.Event {
285
+ return in.Str("operator-id", operatorID)
286
+ })
287
+
288
logger.Info("nice to meet you")
289
290
// Check operating mode
0 commit comments