Skip to content

Commit

Permalink
Add log stating it can take a while to shutdown journald
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Aug 5, 2024
1 parent f4184a7 commit 2decbe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filebeat/input/journald/pkg/journalctl/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func (r *Reader) Close() error {
readStderrTimeout, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

r.logger.Infof("shutting down journalctl, waiting up to: %s", time.Minute)
ReadErrForLoop:
for {
select {
Expand Down

0 comments on commit 2decbe6

Please sign in to comment.