From 42d7d7afc538c5251993f595807114254418b258 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 22 Jan 2018 12:00:16 +0000 Subject: [PATCH] logger: Fix syslog identifier Ensure log entries specify the name of the shim, not its path. Fixes #35. Signed-off-by: James O. D. Hunt --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d1e22e2a..3fd03f3c 100644 --- a/main.go +++ b/main.go @@ -45,7 +45,7 @@ func initLogger(logLevel string) error { shimLog.SetLevel(level) - hook, err := lSyslog.NewSyslogHook("", "", syslog.LOG_INFO|syslog.LOG_USER, "") + hook, err := lSyslog.NewSyslogHook("", "", syslog.LOG_INFO|syslog.LOG_USER, shimName) if err == nil { shimLog.AddHook(hook) }