summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-07 10:54:35 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-07 10:54:35 +0100
commitb31fe15e0d13f9064e26b117541633496c0c3307 (patch)
treead9fc1e3077b514c98af1d6a2cbd78e79f341c9f /config.go
parent096b3fd2867d7bb2d3cd1f85d8806c651b26d625 (diff)
Renaming: "tags" -> "commands"; "commands" -> "actions"
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 3 insertions, 3 deletions
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))
}