We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9793a9 commit 69bbae4Copy full SHA for 69bbae4
lib/plausible_web/controllers/api/system_controller.ex
@@ -23,14 +23,22 @@ defmodule PlausibleWeb.Api.SystemController do
23
def readiness(conn, _params) do
24
postgres_health =
25
case Ecto.Adapters.SQL.query(Plausible.Repo, "SELECT 1", []) do
26
- {:ok, _} -> "ok"
27
- e -> "error: #{inspect(e)}"
+ {:ok, _} ->
+ "ok"
28
+
29
+ e ->
30
+ Logger.error("Postgres health check failure: #{inspect(e)}")
31
+ "error"
32
end
33
34
clickhouse_health =
35
case Ecto.Adapters.SQL.query(Plausible.ClickhouseRepo, "SELECT 1", []) do
36
37
38
39
40
+ Logger.error("Clickhouse health check failure: #{inspect(e)}")
41
42
43
44
cache_health =
0 commit comments