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