From f09260f0d38ca4cbfdfc25772020fbe41ff13c9d Mon Sep 17 00:00:00 2001 From: FZambia Date: Sun, 19 Jan 2025 11:35:28 +0200 Subject: [PATCH] add development build warning --- internal/app/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/app/run.go b/internal/app/run.go index bdbb222cd..11841a923 100644 --- a/internal/app/run.go +++ b/internal/app/run.go @@ -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")