Skip to content

Commit b023823

Browse files
author
Philip Guo
committed
fixed minor bug thanks to john
1 parent e4ebe87 commit b023823

3 files changed

Lines changed: 508 additions & 1 deletion

File tree

‎v3/pg_logger.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def create_encoded_stack_entry(cur_frame):
377377
assert parent_frame.f_locals[k] == v
378378
is_in_parent_frame = True
379379

380-
if is_in_parent_frame:
380+
if is_in_parent_frame and k not in cur_frame.f_code.co_varnames:
381381
continue
382382

383383
# don't display some built-in locals ...

0 commit comments

Comments
 (0)