Skip to content

Commit

Permalink
Log Electric version at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Dec 20, 2024
1 parent 7189148 commit 9bbdab0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/sync-service/lib/electric/application.ex
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9bbdab0

Please sign in to comment.