Skip to content

Commit

Permalink
Merge #132899
Browse files Browse the repository at this point in the history
132899: logconfig: update file sink log validation message r=aa-joshi a=aa-joshi

Previously we added a file sink log validation (#132742). This change updates message so that message is clear to the user.

Epic: CRDB-37534
Release note (ops change): Updated the file sink log validation message. This would give clear indication to user about the expected valid configuration.

Co-authored-by: Akshay Joshi <akshay@cockroachlabs.com>
  • Loading branch information
craig[bot] and aa-joshi committed Oct 18, 2024
2 parents 833dadd + 0523d28 commit 66a401e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/util/log/logconfig/testdata/validate
Original file line number Diff line number Diff line change
Expand Up @@ -879,4 +879,4 @@ file-defaults:
flush-trigger-size: 1.0MiB
max-buffer-size: 50MiB
----
ERROR: File-based audit logging cannot coexist with buffering configuration. Disable either the "buffering" (buffered-writes) or "auditable" log (auditable) configuration.
ERROR: File-based audit logging cannot coexist with buffering configuration. Disable either the buffering configuration ("buffering") or auditable log ("auditable") configuration.
2 changes: 1 addition & 1 deletion pkg/util/log/logconfig/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (c *Config) validateFileSinkConfig(fc *FileSinkConfig) error {
}
if *fc.Auditable {
return errors.Newf(`File-based audit logging cannot coexist with buffering configuration. ` +
`Disable either the "buffering" (buffered-writes) or "auditable" log (auditable) configuration.`)
`Disable either the buffering configuration ("buffering") or auditable log ("auditable") configuration.`)
}
// To preserve the format of log files, avoid additional formatting in the
// buffering configuration.
Expand Down

0 comments on commit 66a401e

Please sign in to comment.