diff --git a/cmd/plugin/main.go b/cmd/plugin/main.go index a298775..ffae2f0 100644 --- a/cmd/plugin/main.go +++ b/cmd/plugin/main.go @@ -369,7 +369,9 @@ func FLBPluginExit() int { //export FLBPluginExitCtx func FLBPluginExitCtx(ctx unsafe.Pointer) int { + log.Info(nil, "Shutdown Fluent Bit plugin") defer metricsServer.Stop() + err := client.BufferWrite() if err != nil { log.Error(nil, "Error while writing buffer", zap.Error(err))