@@ -1399,7 +1399,7 @@ defmodule Ecto.Adapters.SQL do
13991399 end
14001400
14011401 defp log_stacktrace ( [ _ | _ ] = stacktrace , repo , { module , function , args } ) do
1402- entries = apply ( module , function , [ stacktrace , repo | args ] )
1402+ entries = apply ( module , function , [ stacktrace , % { repo: repo } | args ] )
14031403
14041404 Enum . with_index ( entries , fn { module , function , arity , info } , idx ->
14051405 [
@@ -1431,9 +1431,12 @@ defmodule Ecto.Adapters.SQL do
14311431 This function is used by default in the `:log_stacktrace_mfa` config, with
14321432 a size of 1.
14331433 """
1434- @ spec first_non_ecto_stacktrace ( Exception . stacktrace ( ) , Ecto.Repo . t ( ) , non_neg_integer ( ) ) ::
1435- Exception . stacktrace ( )
1436- def first_non_ecto_stacktrace ( stacktrace , repo , size ) do
1434+ @ spec first_non_ecto_stacktrace (
1435+ Exception . stacktrace ( ) ,
1436+ % { repo: Ecto.Repo . t ( ) } ,
1437+ non_neg_integer ( )
1438+ ) :: Exception . stacktrace ( )
1439+ def first_non_ecto_stacktrace ( stacktrace , % { repo: repo } , size ) do
14371440 stacktrace
14381441 |> Enum . reverse ( )
14391442 |> last_non_ecto_entries ( repo , [ ] )
0 commit comments