Skip to content

Commit 21e76c7

Browse files
committed
remove extra logs
1 parent 8e5143d commit 21e76c7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

lib/realtime_web/controllers/tenant_controller.ex

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ defmodule RealtimeWeb.TenantController do
227227
def reload(conn, %{"tenant_id" => tenant_id}) do
228228
case Api.get_tenant_by_external_id(tenant_id, use_replica?: false) do
229229
nil ->
230-
log_error("TenantNotFound", "Tenant not found")
231230
{:error, :not_found}
232231

233232
tenant ->
@@ -261,7 +260,6 @@ defmodule RealtimeWeb.TenantController do
261260
def shutdown(conn, %{"tenant_id" => tenant_id}) do
262261
case Api.get_tenant_by_external_id(tenant_id, use_replica?: false) do
263262
nil ->
264-
log_error("TenantNotFound", "Tenant not found")
265263
{:error, :not_found}
266264

267265
tenant ->
@@ -292,15 +290,9 @@ defmodule RealtimeWeb.TenantController do
292290

293291
def health(conn, %{"tenant_id" => tenant_id}) do
294292
case Tenants.health_check(tenant_id) do
295-
{:ok, response} ->
296-
json(conn, %{data: response})
297-
298-
{:error, %{healthy: false} = response} ->
299-
json(conn, %{data: response})
300-
301-
{:error, :tenant_not_found} ->
302-
log_error("TenantNotFound", "Tenant not found")
303-
{:error, :not_found}
293+
{:ok, response} -> json(conn, %{data: response})
294+
{:error, %{healthy: false} = response} -> json(conn, %{data: response})
295+
{:error, :tenant_not_found} -> {:error, :not_found}
304296
end
305297
end
306298

0 commit comments

Comments
 (0)