From 3f1d661657f6588c446ff66679bfd9576d6d578e Mon Sep 17 00:00:00 2001 From: "sicong.huang" Date: Thu, 8 Jul 2021 22:20:59 +0800 Subject: [PATCH] Add nicer error message when metadata request fails (#206) (#214) Signed-off-by: lastchiliarch --- operator/builtin/input/windows/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/builtin/input/windows/operator.go b/operator/builtin/input/windows/operator.go index f552c584..cae62918 100644 --- a/operator/builtin/input/windows/operator.go +++ b/operator/builtin/input/windows/operator.go @@ -201,7 +201,7 @@ func (e *EventLogInput) processEvent(ctx context.Context, event Event) { publisher := NewPublisher() if err := publisher.Open(simpleEvent.Provider.Name); err != nil { - e.Errorf("Failed to open publisher: %s") + e.Errorf("Failed to open publisher: %s: writing log entry to pipeline without metadata", err) e.sendEvent(ctx, simpleEvent) return }