From db3ccc1d59c903f6d4e5f456b4e65d780449c34e Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Wed, 6 Dec 2017 09:02:06 +0000 Subject: [PATCH] logging: Ensure journald identifier is simply "cc-proxy" Previously, the identifier used for each proxy log message specified the full path to the proxy binary. This meant that to select proxy log messages it was necessary to specify: ``` $ sudo journalctl -t /usr/libexec/clear-containers/cc-proxy ``` Now, the user can perform the same action with a simple: ``` $ sudo journalctl -t cc-proxy ``` Fixes #180. Signed-off-by: James O. D. Hunt --- proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.go b/proxy.go index 680b5d0..ce29154 100644 --- a/proxy.go +++ b/proxy.go @@ -835,7 +835,7 @@ func SetLoggingParams(logLevel string) error { syslogHook, err := lsyslog.NewSyslogHook("", "", syslog.LOG_INFO|syslog.LOG_DAEMON, - "") + name) if err != nil { return err }