File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ defmodule DBConnection.ConnectionPool do
352352
353353 defp drop ( delay , from ) do
354354 message = """
355- connection not available and request was dropped from queue after #{ delay } ms. \
355+ [ #{ ancestor ( ) } ] connection not available and request was dropped from queue after #{ delay } ms. \
356356 This means requests are coming in and your connection pool cannot serve them fast enough. \
357357 You can address this by:
358358
@@ -369,6 +369,10 @@ defmodule DBConnection.ConnectionPool do
369369 Holder . reply_error ( from , err )
370370 end
371371
372+ defp ancestor do
373+ Process . get ( :"$ancestors" , [ ] ) |> Enum . find ( & is_atom / 1 )
374+ end
375+
372376 defp start_opts ( opts ) do
373377 Keyword . take ( opts , [ :name , :spawn_opt ] )
374378 end
You can’t perform that action at this time.
0 commit comments