From fe4db01d45a155b760db5daf87770b02426ab606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szuma?= Date: Fri, 10 May 2024 15:37:11 +0200 Subject: [PATCH] More error logs --- lib/jellyfish/room_service.ex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/jellyfish/room_service.ex b/lib/jellyfish/room_service.ex index 99a2e69a..f62641ae 100644 --- a/lib/jellyfish/room_service.ex +++ b/lib/jellyfish/room_service.ex @@ -136,6 +136,8 @@ defmodule Jellyfish.RoomService do @impl true def handle_call({:create_room, config}, _from, state) do + Logger.info("Start create room") + with {:ok, room_pid, room_id} <- Room.start(config) do room = Room.get_state(room_id) Process.monitor(room_pid) @@ -152,6 +154,10 @@ defmodule Jellyfish.RoomService do else {:error, :room_already_exists} = error -> {:reply, error, state} + + reason -> + Logger.warning("Room creation failed with reason: #{inspect(reason)}") + {:reply, :room_doesnt_start, state} end end