Skip to content

Commit fe4db01

Browse files
committed
More error logs
1 parent 6a78df6 commit fe4db01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/jellyfish/room_service.ex

+6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ defmodule Jellyfish.RoomService do
136136

137137
@impl true
138138
def handle_call({:create_room, config}, _from, state) do
139+
Logger.info("Start create room")
140+
139141
with {:ok, room_pid, room_id} <- Room.start(config) do
140142
room = Room.get_state(room_id)
141143
Process.monitor(room_pid)
@@ -152,6 +154,10 @@ defmodule Jellyfish.RoomService do
152154
else
153155
{:error, :room_already_exists} = error ->
154156
{:reply, error, state}
157+
158+
reason ->
159+
Logger.warning("Room creation failed with reason: #{inspect(reason)}")
160+
{:reply, :room_doesnt_start, state}
155161
end
156162
end
157163

0 commit comments

Comments
 (0)