mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 12:16:16 +08:00
Changed the facility of syslog to be LOCAL0
This commit is contained in:
parent
7fb1c7e91d
commit
f1f1eb040a
|
@ -30,7 +30,7 @@ func Errors(c *Controller) (middleware.Middleware, error) {
|
|||
} else if handler.LogFile == "stderr" {
|
||||
file = os.Stderr
|
||||
} else if handler.LogFile == "syslog" {
|
||||
file, err = gsyslog.NewLogger(gsyslog.LOG_ERR, "SYSLOG", "caddy")
|
||||
file, err = gsyslog.NewLogger(gsyslog.LOG_ERR, "LOCAL0", "caddy")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ func Log(c *Controller) (middleware.Middleware, error) {
|
|||
} else if rules[i].OutputFile == "stderr" {
|
||||
file = os.Stderr
|
||||
} else if rules[i].OutputFile == "syslog" {
|
||||
file, err = gsyslog.NewLogger(gsyslog.LOG_INFO, "SYSLOG", "caddy")
|
||||
file, err = gsyslog.NewLogger(gsyslog.LOG_INFO, "LOCAL0", "caddy")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user