forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audit logging: do not perform logger call if logging is disabled (ela…
…stic#170333) ## Summary Use the recently added `Logger.isLevelEnabled` API to short circuit audit logging when disabled That way we're not passing though the whole audit log event construction logic when logging would effectively not be performed. https://github.com/elastic/kibana/blob/7012ca54549a8c4e1ed8a64b871eb3b2f84c417a/x-pack/plugins/security/server/audit/audit_service.ts#L170-L202
- Loading branch information
1 parent
d64e246
commit 22a2bfe
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters