Skip to content

Commit

Permalink
Add log line on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ricoberger committed Nov 5, 2024
1 parent d6b5727 commit 74981fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 74981fa

Please sign in to comment.