feat: disable events log by default
continuous-integration/drone/push Build is passing Details

BREAKING CHANGE: events log level is now off unless explicitly enabled
This commit is contained in:
kolaente 2023-02-15 10:44:02 +01:00
parent eb33655c1c
commit da9d25cf72
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ log:
# Echo has its own logging which usually is unnecessary, which is why it is disabled by default. Possible values are stdout, stderr, file or off to disable standard logging. # Echo has its own logging which usually is unnecessary, which is why it is disabled by default. Possible values are stdout, stderr, file or off to disable standard logging.
echo: "off" echo: "off"
# Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging. # Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging.
events: "stdout" events: "off"
# The log level for event log messages. Possible values (case-insensitive) are ERROR, INFO, DEBUG. # The log level for event log messages. Possible values (case-insensitive) are ERROR, INFO, DEBUG.
eventslevel: "info" eventslevel: "info"

View File

@ -853,7 +853,7 @@ Environment path: `VIKUNJA_LOG_ECHO`
Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging. Whether or not to log events. Useful for debugging. Possible values are stdout, stderr, file or off to disable events logging.
Default: `stdout` Default: `off`
Full path: `log.events` Full path: `log.events`

View File

@ -349,7 +349,7 @@ func InitDefaultConfig() {
LogHTTP.setDefault("stdout") LogHTTP.setDefault("stdout")
LogEcho.setDefault("off") LogEcho.setDefault("off")
LogPath.setDefault(ServiceRootpath.GetString() + "/logs") LogPath.setDefault(ServiceRootpath.GetString() + "/logs")
LogEvents.setDefault("stdout") LogEvents.setDefault("off")
LogEventsLevel.setDefault("INFO") LogEventsLevel.setDefault("INFO")
// Rate Limit // Rate Limit
RateLimitEnabled.setDefault(false) RateLimitEnabled.setDefault(false)