ComplianceAsCode / compliance-operator

Operator providing Kubernetes cluster compliance checks
Apache License 2.0
38 stars 23 forks source link

Fix dpanic during remediation logging #486

Closed rhmdnd closed 11 months ago

rhmdnd commented 11 months ago

If a scan has debug enabled, the aggregator will log the remedation information. Previously, you'd see a dpanic in the logs because the keys passed into the logger were invalid.

This commit updates the logging implementation to use the correct key pairs for the log.

openshift-ci[bot] commented 11 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhmdnd, Vincent056

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/ComplianceAsCode/compliance-operator/blob/master/OWNERS)~~ [Vincent056,rhmdnd] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment