Skip to content

Commit

Permalink
Merge pull request #525 from Kraigie/websocket-upgrade-fail-log-message
Browse files Browse the repository at this point in the history
Add error message for lacking consumer startup
  • Loading branch information
jchristgit authored Dec 2, 2023
2 parents 748d91b + d806bf9 commit d2daf49
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/nostrum/shard/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,14 @@ defmodule Nostrum.Shard.Session do
{^reference, :join, _group, _who} ->
:ok
after
timeout -> :timeout
timeout ->
Logger.error(
"No consumers were running nor did any start up in time " <>
"for shard session startup. Is a consumer started as " <>
"part of your supervision tree?"
)

:timeout
end
end
end

0 comments on commit d2daf49

Please # to comment.