From 9bbdab0e9433f152c1d6297e142a767d084efa9e Mon Sep 17 00:00:00 2001 From: Oleksii Sholik Date: Fri, 20 Dec 2024 13:24:58 +0200 Subject: [PATCH] Log Electric version at startup --- packages/sync-service/lib/electric/application.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/sync-service/lib/electric/application.ex b/packages/sync-service/lib/electric/application.ex index f9b885024a..42b96e7c88 100644 --- a/packages/sync-service/lib/electric/application.ex +++ b/packages/sync-service/lib/electric/application.ex @@ -1,7 +1,7 @@ defmodule Electric.Application do use Application - require Config + require Logger @doc """ This callback starts the entire application, but is configured to run only when @@ -82,6 +82,9 @@ defmodule Electric.Application do prometheus_endpoint(Electric.Config.get_env(:prometheus_port)) ]) + app_vsn = Application.spec(:electric, :vsn) + Logger.info("Starting ElectricSQL #{app_vsn}") + Supervisor.start_link(children, strategy: :one_for_one, name: Electric.Supervisor) end