From ec5e4b046f0f98be57b734e85c92757c6fe8ac20 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Tue, 8 Sep 2020 00:57:54 +0300 Subject: [PATCH] fix a bug in the generation of loggers and mapping loggers to host names --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1795a0b..3e5a9e9 100644 --- a/server.go +++ b/server.go @@ -212,7 +212,7 @@ nextDirective: } if logName != "" { - loggerName := srvName + "_log" + loggerName := strings.Join(hosts, "-") + "_log" fileWriter := map[string]interface{}{ "filename": logName, }