This commit is contained in:
parent
d4cbfb960e
commit
80f727a07c
1 changed files with 5 additions and 1 deletions
6
main.go
6
main.go
|
|
@ -54,7 +54,11 @@ func main() {
|
||||||
log.Warn().Msg("Forcing production mode for testing templates")
|
log.Warn().Msg("Forcing production mode for testing templates")
|
||||||
config.Environment = "PRODUCTION"
|
config.Environment = "PRODUCTION"
|
||||||
}
|
}
|
||||||
v := GetVersionInfo()
|
v, err := GetVersionInfo()
|
||||||
|
if err != nil {
|
||||||
|
log.Error().Err(err).Msg("Failed to get version info")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
log.Info().
|
log.Info().
|
||||||
Str("environment", config.Environment).
|
Str("environment", config.Environment).
|
||||||
Bool("is-prod", config.IsProductionEnvironment()).
|
Bool("is-prod", config.IsProductionEnvironment()).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue