diff options
author | Robin Jarry <robin@jarry.cc> | 2022-07-19 21:11:33 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-23 22:52:20 +0200 |
commit | 9203c4b6ef95b324336a9f023550b64a9eb1e4a8 (patch) | |
tree | bf3579fb0f9e99266b056a6dcd52642974f1a3c6 /aerc.go | |
parent | cd1999555714fb886493d2d04b6c472be55cebef (diff) | |
download | aerc-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.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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") |