Skip to content

feat(dips): log proposal rejections at INFO level#968

Open
MoonBoi9001 wants to merge 2 commits intomain-dipsfrom
feat/dips-rejection-logging
Open

feat(dips): log proposal rejections at INFO level#968
MoonBoi9001 wants to merge 2 commits intomain-dipsfrom
feat/dips-rejection-logging

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

Motivation

When indexer-service rejects a DIPs agreement proposal, the rejection reason was only returned in the gRPC response with no server-side log at INFO level. Diagnosing why proposals were being rejected required checking the client (Dipper) side, which isn't always practical.

Summary

  • Added try_extract_deployment_id helper that does best-effort ABI decoding of the signed voucher bytes to extract the subgraph deployment ID
  • Enhanced the rejection log to include the deployment ID, rejection reason, and error message at INFO level
  • Changed from WARN to INFO since rejections are a normal part of the protocol flow (price too low, unsupported network, etc.) rather than an error condition

Example log output:

INFO RCA proposal rejected, error="tokens per second 50 is below configured minimum 100 for network mainnet", reason=PriceTooLow, deployment_id=QmExample...

When an RCA proposal is rejected, log the rejection reason, error, and
deployment ID (when decodable) at INFO level. Previously the rejection
was returned via the gRPC response with no server-side log at INFO,
making debugging difficult without access to the client.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 force-pushed the feat/dips-rejection-logging branch from 02746b3 to 63c0c2a Compare March 4, 2026 17:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 marked this pull request as ready for review March 18, 2026 01:16
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