From ec0e0f9d751f8b387a7b10b65b0a6ab35d50c59b Mon Sep 17 00:00:00 2001 From: Daniel Bridges Date: Fri, 19 Jul 2019 22:49:57 -0700 Subject: Discard stdout if not redirected to file Commit 97bee661 Printf statement at widgets/msgviewer.go#188 introduced bad formatting in the display if stdout was not being redirected. --- aerc.go | 1 + 1 file changed, 1 insertion(+) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 1b313c3e..ca131e63 100644 --- a/aerc.go +++ b/aerc.go @@ -128,6 +128,7 @@ func main() { logOut = os.Stdout } else { logOut = ioutil.Discard + os.Stdout, _ = os.Open(os.DevNull) } logger = log.New(logOut, "", log.LstdFlags) logger.Println("Starting up aerc") -- cgit