From fbaedef7689985a5c9bb5d2cf777a5d92f990b48 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Wed, 6 Mar 2024 11:57:59 +0900 Subject: [PATCH] in_winevtlog: Notify error code when a subscription is entered an invalid status Signed-off-by: Hiroshi Hatake --- plugins/in_winevtlog/winevtlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_winevtlog/winevtlog.c b/plugins/in_winevtlog/winevtlog.c index 66c8ea233db..08af358df72 100644 --- a/plugins/in_winevtlog/winevtlog.c +++ b/plugins/in_winevtlog/winevtlog.c @@ -506,7 +506,7 @@ static int winevtlog_next(struct winevtlog_channel *ch, int hit_threshold) wait = WaitForSingleObject(ch->signal_event, 0); if (wait == WAIT_FAILED) { - flb_error("subscription is invalid"); + flb_error("subscription is invalid. err code = %d", GetLastError()); return FLB_FALSE; } else if (wait != WAIT_OBJECT_0) {