Commit d76cf6d3 authored by Matt Holt's avatar Matt Holt

Merge pull request #230 from evermax/master

log, errors: Use localtime for the log roller timestamp
parents d44ab3db 69950e57
......@@ -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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment