aboutsummaryrefslogtreecommitdiffstats
path: root/aerc.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-07-19 21:11:33 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-23 22:52:20 +0200
commit9203c4b6ef95b324336a9f023550b64a9eb1e4a8 (patch)
treebf3579fb0f9e99266b056a6dcd52642974f1a3c6 /aerc.go
parentcd1999555714fb886493d2d04b6c472be55cebef (diff)
downloadaerc-9203c4b6ef95b324336a9f023550b64a9eb1e4a8.tar.gz
logging: print init procedure and config contents
This may help debugging issues. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'aerc.go')
-rw-r--r--aerc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 909d8e9d..cd8c4dac 100644
--- a/aerc.go
+++ b/aerc.go
@@ -95,15 +95,19 @@ func usage(msg string) {
}
func setWindowTitle() {
+ logging.Debugf("Parsing terminfo")
ti, err := terminfo.LoadFromEnv()
if err != nil {
+ logging.Warnf("Cannot get terminfo: %v", err)
return
}
if !ti.Has(terminfo.HasStatusLine) {
+ logging.Infof("Terminal does not have status line support")
return
}
+ logging.Infof("Setting terminal title")
buf := new(bytes.Buffer)
ti.Fprintf(buf, terminfo.ToStatusLine)
fmt.Fprint(buf, "aerc")