Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix parsing of percentage setting for persistor from env in runtime config (#5772)

Adrian Gruntkowskic18d871d5293
diff --git a/config/runtime.exs b/config/runtime.exs
index 0acb5dfaa2..afcc015705 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -148,7 +148,7 @@ persistor_backend =
"remote" -> Plausible.Ingestion.Persistor.Remote
end
-persistor_backend_percent_enabled =
+{persistor_backend_percent_enabled, ""} =
config_dir
|> get_var_from_path_or_env("PERSISTOR_BACKEND_PERCENT_ENABLED", "0")
|> Integer.parse()