-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/logs: request redactable logs by default
This changes the default value for the `--redactable-logs` flag to `true`. This makes server produce redactable logs by default. Note that `--redactable-logs` only triggers redactable logs if the caller calls `SetupRedactionAndStderrRedirects()`. This is done by e.g. the server code. This means that even with this patch, *unit tests* continue to produce non-redactable logs. This commit also adds telemetry for the enablement of redactable markers, as `server.logging.redactable_logs.{enabled,disabled}`. Release note (cli change): The `cockroach start` and `start-single-node` commands now enable `--redactable-logs` by default. It is also enabled by default in `cockroach demo` if `--log-dir` is passed. This causes log files to become redactable, so that `cockroach debug merge-log --redact` or `cockroach debug zip --redact` can remove sensitive information out of log files. (Reminder: `cockroach debug zip --redact` only affects *log files*; other items collected by the command can still contain sensitive information)
- Loading branch information
Showing
3 changed files
with
28 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
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