Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions backend/protocol_rpc/message_handler/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ class EventScope(Enum):
TRANSACTION = "Transaction"


def show_validator_private_keys_in_logs() -> bool:
return os.getenv("SHOW_VALIDATOR_PRIVATE_KEYS_IN_LOGS", "").lower() in {
"1",
"true",
"yes",
}


def _is_private_key_field(key: Any) -> bool:
if not isinstance(key, str):
return False
Expand All @@ -37,9 +29,6 @@ def _is_private_key_field(key: Any) -> bool:

def sanitize_log_data(value: Any) -> Any:
"""Return a copy of log data with private-key fields removed."""
if show_validator_private_keys_in_logs():
return value

if isinstance(value, dict):
return {
key: sanitize_log_data(item)
Expand Down