Skip to content

Commit 68710db

Browse files
committed
logs_event_pairs: Don't require matching start
1 parent fb91d85 commit 68710db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/logging.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function logs_event_pairs(f, logs::Dict)
121121
event_key = (category, id)
122122
if kind == :start
123123
running_events[event_key] = idx
124-
else
124+
elseif haskey(running_events, event_key)
125125
event_start_idx = running_events[event_key]
126126
f(w, event_start_idx, idx)
127127
end

0 commit comments

Comments
 (0)