mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-25 00:46:07 -04:00
main,log,errors: Option to disable log rotation ("rolling")
For log and errors directive, as well as process log.
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/hashicorp/go-syslog"
|
||||
gsyslog "github.com/hashicorp/go-syslog"
|
||||
"github.com/mholt/caddy"
|
||||
)
|
||||
|
||||
@@ -162,7 +162,7 @@ selectwriter:
|
||||
return err
|
||||
}
|
||||
|
||||
if l.Roller != nil {
|
||||
if l.Roller != nil && !l.Roller.Disabled {
|
||||
file.Close()
|
||||
l.Roller.Filename = l.Output
|
||||
l.writer = l.Roller.GetLogWriter()
|
||||
|
||||
Reference in New Issue
Block a user