diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-06-10 18:40:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-10 18:40:01 +0000 |
| commit | 955ecbd19abb2d30e41426f074ac5eb369fc990c (patch) | |
| tree | 686775fb2961bf70146b87762c5a92e243a216a3 | |
| parent | config: change “no configuration found, using defaults” from error to warning (diff) | |
config: demote “no configuration found, using defaults” to a mere warning
And don’t notify the user in the terminal window, only log it on
stderr.
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | config.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 72f46de2..fa9c84f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -108,6 +108,9 @@ * Writing a sixel on top of another sixel no longer erases the first sixel, but the two are instead blended (https://codeberg.org/dnkl/foot/issues/562). +* Running foot without a configuration file is no longer an error; it + has been demoted to a warning, and is no longer presented as a + notification in the terminal window, but only logged on stderr. ### Deprecated @@ -2662,7 +2662,7 @@ config_load(struct config *conf, const char *conf_path, } else { conf_file = open_config(); if (conf_file.fd < 0) { - LOG_AND_NOTIFY_WARN("no configuration found, using defaults"); + LOG_WARN("no configuration found, using defaults"); ret = !errors_are_fatal; goto out; } |
