Skip to content

Commit

Permalink
Why was this debug even pushed..
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 22, 2024
1 parent 47ad4bc commit bfe0837
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/compiler/messageReporting.ml
Original file line number Diff line number Diff line change
Expand Up @@ -398,20 +398,14 @@ let display_messages ctx on_message = begin
end
end;

let do_filter = not true in
let filter_file = "src/alchimix/core/net/GameData.hx" in
(* trace (Printf.sprintf "%d messages" (List.length ctx.messages)); *)

List.iter (fun cm ->
if not do_filter || cm.cm_pos.pfile = filter_file then begin
if !log_messages then (Option.get !log_message) cm;
if !log_messages then (Option.get !log_message) cm;

match (message_formatter ectx cm) with
| None -> ()
| Some str -> on_message cm.cm_severity str;
end
match (message_formatter ectx cm) with
| None -> ()
| Some str -> on_message cm.cm_severity str
) (List.rev ctx.messages);

if !log_messages then (Option.get !close_logs) ()
if !log_messages then (Option.get !close_logs) ();
end

0 comments on commit bfe0837

Please sign in to comment.