From 2a39bd53750c5579fd5948716bfd370ec5c2f1d4 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 18 May 2022 09:20:47 +0200 Subject: [PATCH 1/2] add comment about independence of log outputs --- extensions/audit/pkg/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/audit/pkg/config/config.go b/extensions/audit/pkg/config/config.go index 73141351b06..cb74afed23f 100644 --- a/extensions/audit/pkg/config/config.go +++ b/extensions/audit/pkg/config/config.go @@ -30,8 +30,8 @@ type Events struct { // Auditlog holds audit log information type Auditlog struct { - LogToConsole bool `yaml:"log_to_console" env:"AUDIT_LOG_TO_CONSOLE" desc:"Logs to Stdout if true."` - LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if true."` + LogToConsole bool `yaml:"log_to_console" env:"AUDIT_LOG_TO_CONSOLE" desc:"Logs to Stdout if true. Independent of the log to file option."` + LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if true. independent of the log to Stdout file option."` FilePath string `yaml:"filepath" env:"AUDIT_FILEPATH" desc:"Filepath to the logfile. Mandatory if LogToFile is true."` Format string `yaml:"format" env:"AUDIT_FORMAT" desc:"Log format. using json is advised."` } From 76ea987d11384abd2a4ba21df7774933254424f8 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 18 May 2022 09:24:03 +0200 Subject: [PATCH 2/2] Update extensions/audit/pkg/config/config.go --- extensions/audit/pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/audit/pkg/config/config.go b/extensions/audit/pkg/config/config.go index cb74afed23f..0e904ff0a80 100644 --- a/extensions/audit/pkg/config/config.go +++ b/extensions/audit/pkg/config/config.go @@ -31,7 +31,7 @@ type Events struct { // Auditlog holds audit log information type Auditlog struct { LogToConsole bool `yaml:"log_to_console" env:"AUDIT_LOG_TO_CONSOLE" desc:"Logs to Stdout if true. Independent of the log to file option."` - LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if true. independent of the log to Stdout file option."` + LogToFile bool `yaml:"log_to_file" env:"AUDIT_LOG_TO_FILE" desc:"Logs to file if true. Independent of the log to Stdout file option."` FilePath string `yaml:"filepath" env:"AUDIT_FILEPATH" desc:"Filepath to the logfile. Mandatory if LogToFile is true."` Format string `yaml:"format" env:"AUDIT_FORMAT" desc:"Log format. using json is advised."` }