Skip to content

Commit

Permalink
in_winevtlog: Notify error code when a subscription is entered an inv…
Browse files Browse the repository at this point in the history
…alid status

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Mar 6, 2024
1 parent 271fcc3 commit fbaedef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_winevtlog/winevtlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fbaedef

Please sign in to comment.