Skip to content

Add structured log for price snapshot write with creator ID and new price after each trade #486

Description

@Chucks1093

Summary

When the indexer updates the price snapshot after a trade, a structured log entry makes it easy to confirm prices are being written correctly without querying the database directly.

Scope

  • Emit a structured debug log after each price snapshot write with fields: creator_id, new_price, previous_price, ledger_sequence, written_at
  • Log only fires on successful write, not on failure
  • Failure to write the snapshot should emit a separate error-level log

Acceptance Criteria

  • Debug log emitted after each successful snapshot write with all fields
  • Error log emitted if snapshot write fails
  • No log emitted when the price is unchanged from the previous snapshot

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions