From 5610789211d755705f7bb9bc65f9cc330a23fad5 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Fri, 22 Sep 2023 11:02:55 +0900 Subject: [PATCH] engine: add sleep to output logs on init (#7931) Signed-off-by: Takahiro Yamashita --- src/flb_engine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flb_engine.c b/src/flb_engine.c index 6bf0a03cd6d..78be8d5ec8d 100644 --- a/src/flb_engine.c +++ b/src/flb_engine.c @@ -597,6 +597,9 @@ int flb_engine_failed(struct flb_config *config) flb_error("[engine] fail to dispatch FAILED message"); } + /* Waiting flushing log */ + sleep(1); + return ret; }