aboutsummaryrefslogtreecommitdiffstats
path: root/config/binds.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-11-27 11:29:34 +0100
committerRobin Jarry <robin@jarry.cc>2022-12-02 22:10:49 +0100
commit23a05d17ac1d23466ff73efa19576d43d06efe4b (patch)
tree49986587a62bdd89eb06ffa2aadf05f6d45cb3e7 /config/binds.go
parent70f46757449c8f24b818f4dfc5dcb87da7e327d6 (diff)
downloadaerc-23a05d17ac1d23466ff73efa19576d43d06efe4b.tar.gz
logging: rename package to log
Use the same name than the builtin "log" package. That way, we do not risk logging in the wrong place. Suggested-by: Tim Culverhouse <tim@timculverhouse.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/binds.go')
-rw-r--r--config/binds.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/binds.go b/config/binds.go
index 281aebf6..6ddeb1e1 100644
--- a/config/binds.go
+++ b/config/binds.go
@@ -10,7 +10,7 @@ import (
"regexp"
"strings"
- "git.sr.ht/~rjarry/aerc/logging"
+ "git.sr.ht/~rjarry/aerc/log"
"github.com/gdamore/tcell/v2"
"github.com/go-ini/ini"
)
@@ -77,7 +77,7 @@ func (config *AercConfig) parseBinds(root string) error {
return err
}
}
- logging.Debugf("Parsing key bindings configuration from %s", filename)
+ log.Debugf("Parsing key bindings configuration from %s", filename)
binds, err := ini.Load(filename)
if err != nil {
return err
@@ -122,7 +122,7 @@ func (config *AercConfig) parseBinds(root string) error {
}
}
- logging.Debugf("binds.conf: %#v", config.Bindings)
+ log.Debugf("binds.conf: %#v", config.Bindings)
return nil
}
@@ -212,7 +212,7 @@ func (config *AercConfig) LoadBinds(binds *ini.File, baseName string, baseGroup
}
}
if !valid {
- logging.Warnf("binds.conf: unexistent account: %s", acctName)
+ log.Warnf("binds.conf: unexistent account: %s", acctName)
continue
}
contextualBind.ContextType = BIND_CONTEXT_ACCOUNT