Skip to content

Add structured log for ownership read model update after each indexed trade event #492

Description

@Chucks1093

Summary

When the indexer updates the ownership read model after a buy or sell, a structured log entry confirms the update happened and shows the balance change, making it easier to trace balance discrepancies without a full database audit.

Scope

  • Emit a structured debug log after each ownership update with fields: creator_id, wallet_address (masked), previous_balance, new_balance, event_type (buy or sell), ledger_sequence
  • Wallet address masked to first 4 and last 4 characters
  • Log emitted only on successful write

Acceptance Criteria

  • Debug log emitted after every successful ownership update
  • All six fields present with correct values
  • Wallet address is masked in all log output
  • No log emitted if the write fails (separate error log handles that)

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions