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 --- commands/compose/postpone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/compose/postpone.go') diff --git a/commands/compose/postpone.go b/commands/compose/postpone.go index 7469b235..2572d8d5 100644 --- a/commands/compose/postpone.go +++ b/commands/compose/postpone.go @@ -47,7 +47,7 @@ func (Postpone) Execute(aerc *widgets.Aerc, args []string) error { return errors.New("No Postpone location configured") } - logging.Infof("Postponing mail") + logging.Tracef("Postponing mail") header, err := composer.PrepareHeader() if err != nil { -- cgit