Skip to content

Commit 973aa66

Browse files
committed
Fix log macro location reporting.
1 parent 1ee108a commit 973aa66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949
for level in [:debug, :info, :warn, :error]
5050
@eval begin
5151
macro $(Symbol("safe_$level"))(ex...)
52-
macrocall = :(@placeholder $(ex...))
52+
macrocall = :(@placeholder $(ex...) _file=$(String(__source__.file)) _line=$(__source__.line))
5353
# NOTE: `@placeholder` in order to avoid hard-coding @__LINE__ etc
5454
macrocall.args[1] = Symbol($"@$level")
5555
quote

0 commit comments

Comments
 (0)