aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parse/ansi.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 /lib/parse/ansi.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 'lib/parse/ansi.go')
-rw-r--r--lib/parse/ansi.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/parse/ansi.go b/lib/parse/ansi.go
index 265ef1f4..e1d603ea 100644
--- a/lib/parse/ansi.go
+++ b/lib/parse/ansi.go
@@ -8,7 +8,7 @@ import (
"os"
"regexp"
- "git.sr.ht/~rjarry/aerc/logging"
+ "git.sr.ht/~rjarry/aerc/log"
)
var ansi = regexp.MustCompile("\x1B\\[[0-?]*[ -/]*[@-~]")
@@ -23,11 +23,11 @@ func StripAnsi(r io.Reader) io.Reader {
line = ansi.ReplaceAll(line, []byte(""))
_, err := buf.Write(line)
if err != nil {
- logging.Warnf("failed write ", err)
+ log.Warnf("failed write ", err)
}
_, err = buf.Write([]byte("\n"))
if err != nil {
- logging.Warnf("failed write ", err)
+ log.Warnf("failed write ", err)
}
}
if err := scanner.Err(); err != nil {