Add env var check for update

This commit is contained in:
Unknwon 2016-02-15 23:11:22 -05:00
parent 2765b5c7cf
commit 9cf4fe043b
2 changed files with 7 additions and 5 deletions

View file

@ -37,6 +37,7 @@ func NewLogger(bufLen int64, mode, config string) {
}
}
// FIXME: use same log level as other loggers.
func NewGitLogger(logPath string) {
os.MkdirAll(path.Dir(logPath), os.ModePerm)
GitLogger = newLogger(0)