0
Fork 0
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:
Matt Holt 2015-09-04 11:27:23 -06:00
commit d76cf6d337
3 changed files with 4 additions and 0 deletions

View file

@ -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,
},
}},
}

View file

@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) {
MaxSize: 2,
MaxAge: 10,
MaxBackups: 3,
LocalTime: true,
},
}}},
}

View file

@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) {
MaxSize: size,
MaxAge: age,
MaxBackups: keep,
LocalTime: true,
}, nil
}