From 6d47f53b8bf59489bb263405e5eb6acdbcce86e9 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 11 Jul 2017 17:52:21 +0900 Subject: fix for logrus package name change https://github.com/sirupsen/logrus/commit/f30ff25fb7e208f9fe65f4ae913129b8220d30c1 Signed-off-by: FUJITA Tomonori --- gobgpd/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gobgpd/util.go') diff --git a/gobgpd/util.go b/gobgpd/util.go index 25e9b888..1b7885b8 100644 --- a/gobgpd/util.go +++ b/gobgpd/util.go @@ -27,7 +27,7 @@ import ( "syscall" log "github.com/sirupsen/logrus" - "github.com/sirupsen/logrus/hooks/syslog" + lSyslog "github.com/sirupsen/logrus/hooks/syslog" ) func init() { @@ -94,7 +94,7 @@ func addSyslogHook(host, facility string) error { priority = syslog.LOG_LOCAL7 } - hook, err := logrus_syslog.NewSyslogHook(network, addr, syslog.LOG_INFO|priority, "bgpd") + hook, err := lSyslog.NewSyslogHook(network, addr, syslog.LOG_INFO|priority, "bgpd") if err != nil { return err } -- cgit v1.2.3