From 30173a4dbe951ad8b6758121c0c4d4fb23e022a7 Mon Sep 17 00:00:00 2001 From: Markus Kont Date: Thu, 3 Feb 2022 15:31:22 +0200 Subject: [PATCH] filter: add worker ID to log messages --- cmd/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/filter.go b/cmd/filter.go index 6be66a2..b95a338 100644 --- a/cmd/filter.go +++ b/cmd/filter.go @@ -137,7 +137,7 @@ var filterCmd = &cobra.Command{ Decapsulate: viper.GetBool("filter.decap"), Compress: viper.GetBool("filter.compress"), StatFunc: func(fr filter.FilterResult) { - logrus.Debugf("%+v", fr) + logrus.WithField("worker", id).Debugf("%+v", fr) }, Ctx: ctx, })