mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-22 20:42:40 +00:00
Append logs to stdout
This commit is contained in:
parent
026bb7304c
commit
df22506bdd
1 changed files with 2 additions and 6 deletions
|
@ -130,12 +130,8 @@ func InitLog() {
|
||||||
level = zerolog.InfoLevel
|
level = zerolog.InfoLevel
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("DEV") == "1" {
|
multi := zerolog.MultiLevelWriter(zerolog.NewConsoleWriter(), file)
|
||||||
multi := zerolog.MultiLevelWriter(zerolog.NewConsoleWriter(), file)
|
log.Logger = zerolog.New(multi).Level(level).With().Timestamp().Logger()
|
||||||
log.Logger = zerolog.New(multi).Level(level).With().Timestamp().Logger()
|
|
||||||
} else {
|
|
||||||
log.Logger = zerolog.New(file).Level(level).With().Timestamp().Logger()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func CheckGitVersion(version string) (bool, error) {
|
func CheckGitVersion(version string) (bool, error) {
|
||||||
|
|
Loading…
Reference in a new issue