~sircmpwn/aerc

ec0e0f9d751f8b387a7b10b65b0a6ab35d50c59b — Daniel Bridges 3 years ago e42b95a
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.
1 files changed, 1 insertions(+), 0 deletions(-)

M aerc.go
M aerc.go => aerc.go +1 -0
@@ 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")