Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration_test/sql/logging.exs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ defmodule Ecto.Integration.LoggingTest do

defp stacktrace_entry(line) do
"↳ anonymous fn/0 in Ecto.Integration.LoggingTest.\"test logs includes stacktraces\"/1, " <>
"at: integration_test/sql/logging.exs##{line - 3}"
"at: integration_test/sql/logging.exs:#{line - 3}"
end

test "when some measurements are nil" do
Expand Down
3 changes: 2 additions & 1 deletion lib/ecto/adapters/sql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ defmodule Ecto.Adapters.SQL do
with [_ | _] <- stacktrace,
{module, function, arity, info} <- last_non_ecto(Enum.reverse(stacktrace), repo, nil) do
[
IO.ANSI.light_black(),
?\n,
"↳ ",
Exception.format_mfa(module, function, arity),
Expand All @@ -1189,7 +1190,7 @@ defmodule Ecto.Adapters.SQL do
end

defp log_stacktrace_info([file: file, line: line] ++ _) do
[", at: ", file, ?#, Integer.to_string(line)]
[", at: ", file, ?:, Integer.to_string(line)]
end

defp log_stacktrace_info(_) do
Expand Down