mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 10:12:35 +00:00
VAULT-24798: audit - improve error messages (#26312)
* audit: remove 'op' from error messages and do some clean up * Allow early error checking to be concerned with vault/Core vs. audit
This commit is contained in:
@@ -104,7 +104,7 @@ func WithSubtype(s string) Option {
|
||||
// WithFormat provides an Option to represent event format.
|
||||
func WithFormat(f string) Option {
|
||||
return func(o *options) error {
|
||||
f := strings.TrimSpace(f)
|
||||
f := strings.TrimSpace(strings.ToLower(f))
|
||||
if f == "" {
|
||||
// Return early, we won't attempt to apply this option if its empty.
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user