Skip to content

Commit

Permalink
service: prepend the windowsEventLogCore (#5298)
Browse files Browse the repository at this point in the history
* service: prepend the windowsEventLogCore

* CHANGELOG: add bugfix entry
  • Loading branch information
braydonk authored May 5, 2022
1 parent b062dd3 commit 9230753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

### 🧰 Bug fixes 🧰

- Fix Windows Event Logs ignoring user-specified logging options (#5298)

## v0.50.0 Beta

### 🛑 Breaking changes 🛑
Expand Down
4 changes: 2 additions & 2 deletions service/collector_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ func newWithWindowsEventLogCore(set CollectorSettings, elog *eventlog.Log) (*Col
}
}
set.LoggingOptions = append(
set.LoggingOptions,
zap.WrapCore(withWindowsCore(elog)),
[]zap.Option{zap.WrapCore(withWindowsCore(elog))},
set.LoggingOptions...,
)
return New(set)
}
Expand Down

0 comments on commit 9230753

Please sign in to comment.