diff options
-rw-r--r-- | config/aerc.conf | 6 | ||||
-rw-r--r-- | config/general.go | 4 | ||||
-rw-r--r-- | doc/aerc-config.5.scd | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index 8f3fd097..ecae5b90 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -31,9 +31,9 @@ #log-file= # Only log messages above the specified level to log-file. Supported levels -# are: debug, info, warn and error. When redirecting aerc's output to a file -# using > shell redirection, this setting is ignored and the log level is -# forced to debug. +# are: trace, debug, info, warn and error. When redirecting aerc's output to +# a file using > shell redirection, this setting is ignored and the log level +# is forced to trace. # # Default: info #log-level=info diff --git a/config/general.go b/config/general.go index b06eddde..2c09a14e 100644 --- a/config/general.go +++ b/config/general.go @@ -51,8 +51,8 @@ func (config *AercConfig) parseGeneral(file *ini.File) error { end: if !isatty.IsTerminal(os.Stdout.Fd()) { logFile = os.Stdout - // redirected to file, force DEBUG level - config.General.LogLevel = log.DEBUG + // redirected to file, force TRACE level + config.General.LogLevel = log.TRACE } else if config.General.LogFile != "" { path, err := homedir.Expand(config.General.LogFile) if err != nil { diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index e7000b4c..868f6564 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -58,7 +58,7 @@ These options are configured in the *[general]* section of _aerc.conf_. Only log messages above the specified level to *log-file*. Supported levels are: _trace_, _debug_, _info_, _warn_ and _error_. When redirecting aerc's output to a file using _>_ shell redirection, this - setting is ignored and the log level is forced to _debug_. + setting is ignored and the log level is forced to _trace_. Default: _info_ |