From b31fe15e0d13f9064e26b117541633496c0c3307 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Mon, 7 Aug 2017 10:54:35 +0100 Subject: Renaming: "tags" -> "commands"; "commands" -> "actions" --- config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 0071719..5deaf10 100644 --- a/config.go +++ b/config.go @@ -27,10 +27,10 @@ func readGlobalConfig(fname string) *master { //fmt.Printf("%s", cfg) - if cfg.Logfile != "" { - f, err := os.OpenFile(cfg.Logfile, os.O_APPEND|os.O_CREATE|os.O_RDWR, 0600) + if cfg.LogFile != "" { + f, err := os.OpenFile(cfg.LogFile, os.O_APPEND|os.O_CREATE|os.O_RDWR, 0600) if err != nil { - log.Fatal("Error opening logfile: ", cfg.Logfile, err) + log.Fatal("Error opening logfile: ", cfg.LogFile, err) } else { log.SetOutput(io.Writer(f)) } -- cgit v1.2.3