You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade all audit log lines to structured json (#8595)
In the log package, remove all audit-level helper functions except for
AuditErr and AuditObject, and rename the latter to AuditInfo to reflect
its log level. Update both of those helpers to take arbitrary sets of
key-value pairs (a map in the case of AuditErr, or any object in the
case of AuditInfo to support our existing logEvent structs), which they
then log as a JSON object.
Throughout the rest of the code base, modify all audit log calls which
are broken by the above change. In some cases, downgrade the log line
from an audit log to a normal log, as it does not represent an event
which the BRs require us to log and which we are not already logging
elsewhere. In other cases, provide a map of key-value pairs to be
included in the log message.
Finally, update a small number of tests that were expecting very
specific log message formats to be emitted.
Fixes#8554
0 commit comments