Skip to content

Commit

Permalink
Log extension actor shutdown request
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Apr 29, 2024
1 parent e549436 commit fc6e4fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/osquery/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ func (e *Extension) Execute() error {
// select to either exit or write another batch of logs
select {
case <-e.done:
e.slogger.Log(context.TODO(), slog.LevelInfo,
"osquery extension received shutdown request",
)
return nil
case <-ticker.Chan():
// Resume loop
Expand Down

0 comments on commit fc6e4fc

Please sign in to comment.