From f1f1eb040a42385bed1cdaa1d7398d3892c6d163 Mon Sep 17 00:00:00 2001 From: Maxime Date: Mon, 3 Aug 2015 12:00:17 +0200 Subject: [PATCH] Changed the facility of syslog to be LOCAL0 --- config/setup/errors.go | 2 +- config/setup/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/setup/errors.go b/config/setup/errors.go index a75b621a..58f22dfa 100644 --- a/config/setup/errors.go +++ b/config/setup/errors.go @@ -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 } diff --git a/config/setup/log.go b/config/setup/log.go index e1e864ec..0c15c3d0 100644 --- a/config/setup/log.go +++ b/config/setup/log.go @@ -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 }