mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-20 22:52:58 -05:00
Merge pull request #230 from evermax/master
log, errors: Use localtime for the log roller timestamp
This commit is contained in:
commit
d76cf6d337
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…
Add table
Reference in a new issue