Skip to content

Commit

Permalink
fix: Call shutdown on storage extension (#1855)
Browse files Browse the repository at this point in the history
call shutdown on storage extension
  • Loading branch information
dpaasman00 authored Sep 12, 2024
1 parent b0882b6 commit 1bbab5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion receiver/m365receiver/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ func (l *m365LogsReceiver) Shutdown(ctx context.Context) error {
l.cancel()
}
l.wg.Wait()
return l.checkpoint(ctx)

err := l.checkpoint(ctx)
if err != nil {
l.logger.Error("failed checkpoint", zap.Error(err))
}

return l.storageClient.Close(ctx)
}

// spins a go routine at each poll interval to go get logs
Expand Down

0 comments on commit 1bbab5e

Please sign in to comment.