From 89b66d05866e2bd7bba511d2f0b6a3dd0d58a43f Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sat, 16 Sep 2023 09:41:13 +0900 Subject: [PATCH] engine: add sleep to output logs on init 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; }