diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-26 21:15:09 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-26 21:15:09 +0000 |
| commit | 5dca0458a09ebc586fda49c50533976f055d8de2 (patch) | |
| tree | 9e1f768a9e3302fe5048a8d3a86cb614a8a57e5e /completions/fish | |
| parent | vt: don’t reset utf8proc grapheme state when we’re not at a grapheme break (diff) | |
log: add LOG_CLASS_NONE and use as initializer for log_level
This means that logging will be completely disabled until log_init()
has been called, which is useful to prevent log spam when running
UNITTEST{} blocks in debug builds.
Note that this doesn't change the default log level at runtime, which
was already being set to LOG_CLASS_INFO in main.c and client.c.
The new log level is also exposed to the command-line interface as
`--log-level=none`, which allows disabling logging entirely.
Diffstat (limited to 'completions/fish')
| -rw-r--r-- | completions/fish/foot.fish | 2 | ||||
| -rw-r--r-- | completions/fish/footclient.fish | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/completions/fish/foot.fish b/completions/fish/foot.fish index dbec61e7..81c7da61 100644 --- a/completions/fish/foot.fish +++ b/completions/fish/foot.fish @@ -15,7 +15,7 @@ complete -c foot -x -s W -l window-size-chars complete -c foot -F -s s -l server -d "run as server; open terminals by running footclient" complete -c foot -s H -l hold -d "remain open after child process exits" complete -c foot -r -s p -l print-pid -d "print PID to this file or FD when up and running (server mode only)" -complete -c foot -x -s d -l log-level -a "info warning error" -d "log-level (info)" +complete -c foot -x -s d -l log-level -a "info warning error none" -d "log-level (info)" complete -c foot -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr" complete -c foot -s S -l log-no-syslog -d "disable syslog logging (server mode only)" complete -c foot -s v -l version -d "show the version number and quit" diff --git a/completions/fish/footclient.fish b/completions/fish/footclient.fish index 9b8caa84..8133f663 100644 --- a/completions/fish/footclient.fish +++ b/completions/fish/footclient.fish @@ -12,7 +12,7 @@ complete -c footclient -F -s s -l server-socket complete -c footclient -s H -l hold -d "remain open after child process exits" complete -c footclient -s N -l no-wait -d "detach the client process from the running terminal, exiting immediately" complete -c footclient -x -s o -l override -d "configuration option to override, in form SECTION.KEY=VALUE" -complete -c footclient -x -s d -l log-level -a "info warning error" -d "log-level (info)" +complete -c footclient -x -s d -l log-level -a "info warning error none" -d "log-level (info)" complete -c footclient -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr" complete -c footclient -s v -l version -d "show the version number and quit" complete -c footclient -s h -l help -d "show help message and quit" |
