diff options
author | Robin Jarry <robin@jarry.cc> | 2022-11-19 14:34:10 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-21 13:18:34 +0100 |
commit | e5f2fb08d8a7604aeef726698ef696874bcd2561 (patch) | |
tree | 6927564ae1f016abc16bb9c5041969092c3ba10c /config/binds.go | |
parent | 9db3710dd73b6949321a028b4dc2dc2277e97ce0 (diff) | |
download | aerc-e5f2fb08d8a7604aeef726698ef696874bcd2561.tar.gz |
config: add log-file and log-level settings
Allow configuring persistent logging to file with a log level. When
redirecting the output of aerc to a file these two settings are ignored
and all messages are printed to stdout.
Suggested-by: Moritz Poldrack <moritz@poldrack.dev>
Suggested-by: Tim Culverhouse <tim@timculverhouse.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/binds.go')
-rw-r--r-- | config/binds.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/binds.go b/config/binds.go index 63fc335a..4b32e6da 100644 --- a/config/binds.go +++ b/config/binds.go @@ -72,7 +72,7 @@ func (config *AercConfig) parseBinds(root string) error { filename := path.Join(root, "binds.conf") if _, err := os.Stat(filename); errors.Is(err, os.ErrNotExist) { - logging.Debugf("%s not found, installing the system default", filename) + fmt.Printf("%s not found, installing the system default", filename) if err := installTemplate(root, "binds.conf"); err != nil { return err } |