Skip to content

Commit

Permalink
add development build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jan 19, 2025
1 parent 9abee5b commit f09260f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func Run(cmd *cobra.Command, configFile string) {
}
entry.Msg("starting Centrifugo")

if build.Version == "0.0.0" {
log.Warn().Msg("running a development build of Centrifugo (version 0.0.0), ensure to use release build in production")
}

err = cfg.Validate()
if err != nil {
log.Fatal().Err(err).Msg("error validating config")
Expand Down

0 comments on commit f09260f

Please sign in to comment.