agent: Set custom syslog facility. Fixes #170.

This commit is contained in:
Armon Dadgar 2014-06-11 10:28:55 -07:00
parent 82c27cb902
commit 8bdfd8c7b2
1 changed files with 1 additions and 1 deletions

View File

@ -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