summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2015-10-08 12:58:50 +0300
committerSergey Matveev <stargrave@stargrave.org>2015-10-08 12:58:50 +0300
commitdf1aca605d645d0db48f9bacdcb7354bbdc1c5ee (patch)
tree34f07b46d547981a01e19b9b62cfa5d015409917
parenta4ce3f8999d3efae60d7a52b7edc024706d96a51 (diff)
downloadgoircd-df1aca605d645d0db48f9bacdcb7354bbdc1c5ee.tar.xz
Append .log extension to logfiles
-rw-r--r--events.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/events.go b/events.go
index 44974b8..bc659a6 100644
--- a/events.go
+++ b/events.go
@@ -70,7 +70,7 @@ func Logger(logdir string, events <-chan LogEvent) {
var fd *os.File
var err error
for event := range events {
- logfile = path.Join(logdir, event.where)
+ logfile = path.Join(logdir, event.where + ".log")
fd, err = os.OpenFile(logfile, mode, perm)
if err != nil {
log.Println("Can not open logfile", logfile, err)