summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-01 18:59:13 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-01 18:59:13 -0500
commit1767e4fab515cefba08345e6eb2c84f46daf4be1 (patch)
tree562b1f2269df58b4c783a771ac0324ce32ec7bb1 /cmd
parentd24e4712a45e03d79fa1ccb71d00c5b830d5a305 (diff)
downloadaerc-1767e4fab515cefba08345e6eb2c84f46daf4be1.tar.gz
Improve logging
Diffstat (limited to 'cmd')
-rw-r--r--cmd/aerc/main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/aerc/main.go b/cmd/aerc/main.go
index cda4991..4219978 100644
--- a/cmd/aerc/main.go
+++ b/cmd/aerc/main.go
@@ -22,7 +22,7 @@ func main() {
 	} else {
 		logOut = ioutil.Discard
 	}
-	logger = log.New(logOut, "", log.LstdFlags|log.Lshortfile)
+	logger = log.New(logOut, "", log.LstdFlags)
 	logger.Println("Starting up aerc")
 
 	conf, err := config.LoadConfig(nil)
@@ -37,9 +37,7 @@ func main() {
 	for _, account := range conf.Accounts {
 		logger.Printf("Initializing account %s\n", account.Name)
 		tab, err := ui.NewAccountTab(&account, log.New(
-			logOut,
-			fmt.Sprintf("[%s] ", account.Name),
-			log.LstdFlags|log.Lshortfile))
+			logOut, fmt.Sprintf("[%s] ", account.Name), log.LstdFlags))
 		if err != nil {
 			panic(err)
 		}