Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
f1f1eb04
Commit
f1f1eb04
authored
Aug 03, 2015
by
Maxime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the facility of syslog to be LOCAL0
parent
7fb1c7e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config/setup/errors.go
config/setup/errors.go
+1
-1
config/setup/log.go
config/setup/log.go
+1
-1
No files found.
config/setup/errors.go
View file @
f1f1eb04
...
...
@@ -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
}
...
...
config/setup/log.go
View file @
f1f1eb04
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment