From 8bdfd8c7b2f68586cdb08e03e6c340ef75ef3db9 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 11 Jun 2014 10:28:55 -0700 Subject: [PATCH] agent: Set custom syslog facility. Fixes #170. --- command/agent/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index 2e9aad86d8..6da6074af4 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -167,7 +167,7 @@ func (c *Command) setupLoggers(config *Config) (*GatedWriter, *logWriter, io.Wri // Check if syslog is enabled var syslog io.Writer if config.EnableSyslog { - l, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "consul") + l, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, config.SyslogFacility, "consul") if err != nil { c.Ui.Error(fmt.Sprintf("Syslog setup failed: %v", err)) return nil, nil, nil