Append logs to stdout

This commit is contained in:
Thomas Miceli 2023-05-24 16:40:27 +02:00
parent 026bb7304c
commit df22506bdd
No known key found for this signature in database
GPG key ID: D86C6F6390AF050F

View file

@ -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) {