mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05:00
Use localtime for the log roller timestamp
This commit is contained in:
parent
d44ab3dbab
commit
69950e57f0
3 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,7 @@ func TestErrorsParse(t *testing.T) {
|
|||
MaxSize: 2,
|
||||
MaxAge: 10,
|
||||
MaxBackups: 3,
|
||||
LocalTime: true,
|
||||
},
|
||||
}},
|
||||
{`errors { log errors.txt {
|
||||
|
@ -86,6 +87,7 @@ func TestErrorsParse(t *testing.T) {
|
|||
MaxSize: 3,
|
||||
MaxAge: 11,
|
||||
MaxBackups: 5,
|
||||
LocalTime: true,
|
||||
},
|
||||
}},
|
||||
}
|
||||
|
|
|
@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) {
|
|||
MaxSize: 2,
|
||||
MaxAge: 10,
|
||||
MaxBackups: 3,
|
||||
LocalTime: true,
|
||||
},
|
||||
}}},
|
||||
}
|
||||
|
|
|
@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) {
|
|||
MaxSize: size,
|
||||
MaxAge: age,
|
||||
MaxBackups: keep,
|
||||
LocalTime: true,
|
||||
}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue