Skip to content

Commit

Permalink
agent: Set custom syslog facility. Fixes #170.
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Jun 11, 2014
1 parent 82c27cb commit 8bdfd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bdfd8c

Please sign in to comment.