Skip to content

Remove stray debug print statements from the SDK - #34

Open
pucedoteth wants to merge 1 commit into
OrderlyNetwork:mainfrom
pucedoteth:remove-debug-prints
Open

pucedoteth wants to merge 1 commit into
OrderlyNetwork:mainfrom
pucedoteth:remove-debug-prints

Conversation

@pucedoteth

Copy link
Copy Markdown

What

Two REST helpers write to stdout on every call:

  • request_pnl_settlement (_settlement.py) calls print(message) on the full EIP-712 settlement message — broker id, chain id, settle nonce, user address, timestamp — right before signing it.
  • get_referral_rebate_summary (_referral.py) calls print(start_date, end_date) on its arguments.

Why it matters

Both are leftover debugging output. A connector library shouldn't print to the host application's stdout, and the settlement one dumps the structured payload the caller is about to sign into their logs. After the change, orderly_evm_connector/ contains no print() calls.

No behavior changes beyond removing the two lines; both modules still compile.

Two library functions print to stdout on every call:

- `request_pnl_settlement` prints the full EIP-712 settlement message
  (broker, chain, nonce, user address, timestamp) before signing it.
- `get_referral_rebate_summary` prints its start/end date arguments.

Both are leftover debugging output. A library should not write to
stdout, and the settlement one leaks the structured message a caller is
about to sign into the application's logs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant