about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--aerc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 1b313c3..ca131e6 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")