Skip to content

Commit

Permalink
Apply sensitive filter when dumping flow trace
Browse files Browse the repository at this point in the history
  • Loading branch information
timsavage committed Nov 27, 2024
1 parent 95c4a46 commit 155721d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyapp_flow/datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
Iterable,
)

from .helpers import mask_keys

Branches = Dict[str, Sequence["Navigable"]]
TRACE_STATE_KEY: Final[str] = "__trace"

Expand Down Expand Up @@ -59,7 +61,7 @@ def __rich__(self):
"""Rich repr of state."""
from rich.scope import render_scope

return render_scope(self, title="State Variables", sort_keys=True)
return render_scope(mask_keys(self), title="State Variables", sort_keys=True)

def copy(self) -> "State":
"""Copy and return a state instance."""
Expand Down

0 comments on commit 155721d

Please sign in to comment.