From 70f46757449c8f24b818f4dfc5dcb87da7e327d6 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 23 Nov 2022 10:43:44 +0100 Subject: logging: homogenize levels The main goal is to ensure that by default, the log file (if configured) does not grow out of proportions. Most of the logging messages in aerc are actually for debugging and/or trace purposes. Define clear rules for logging levels. Enforce these rules everywhere. After this patch, here is what the log file looks like after starting up with a single account: INFO 2022/11/24 20:26:16.147164 aerc.go:176: Starting up version 0.13.0-100-g683981479c60 (go1.18.7 amd64 linux) INFO 2022/11/24 20:26:17.546448 account.go:254: [work] connected. Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy Acked-by: Tim Culverhouse --- lib/crypto/pgp/pgp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/crypto/pgp') diff --git a/lib/crypto/pgp/pgp.go b/lib/crypto/pgp/pgp.go index f5612eea..fd9d13eb 100644 --- a/lib/crypto/pgp/pgp.go +++ b/lib/crypto/pgp/pgp.go @@ -29,7 +29,7 @@ var ( ) func (m *Mail) Init() error { - logging.Infof("Initializing PGP keyring") + logging.Debugf("Initializing PGP keyring") err := os.MkdirAll(path.Join(xdg.DataHome(), "aerc"), 0o700) if err != nil { return fmt.Errorf("failed to create data directory: %w", err) -- cgit