Skip to content

Commit

Permalink
ENHANCED: Avoid spurious tracing in push_msg/2.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 6, 2024
1 parent 6ceeee0 commit 69e65a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions boot/messages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,6 @@
prolog:message_prefix_hook/2.
:- thread_local
user:thread_message_hook/3.
:- '$hide'((push_msg/1,pop_msg/0)).
:- '$notransact'((user:message_hook/3,
prolog:message_prefix_hook/2,
user:thread_message_hook/3)).
Expand All @@ -2027,9 +2026,9 @@
!.
print_message(Level, Term) :-
setup_call_cleanup(
push_msg(Term, Stack),
notrace(push_msg(Term, Stack)),
ignore(print_message_guarded(Level, Term)),
pop_msg(Stack)),
notrace(pop_msg(Stack))),
!.
print_message(Level, Term) :-
( Level \== silent
Expand Down

0 comments on commit 69e65a2

Please sign in to comment.