Skip to content

Conversation

@sergiupopescu199
Copy link
Contributor

Description of change

This PR modifies the log level from INFO to DEBUG for Subscription Responses in the Logger extension to avoid log pollution.
Since every item received from the Subscription stream is treated as a GraphQL Response. With multiple subscribers at the same time, the logs become too polluted and hard to read.

Links to any relevant issues

fixes #9114

How the change has been tested

  • Basic tests (linting, compilation, formatting, unit/integration tests)

  • Patch-specific tests (correctness, functionality coverage)

  • Ran the GraphQL server by using the iota cli

RUST_LOG=off,iota_graphql_rpc=info cargo r --features indexer -- start --force-regenesis   --with-indexer --with-graphql

When making Subscription requests, the logs were no longer present. If enabling RUST_LOG=off,iota_graphql_rpc=debug, the logs were visible.

2025-11-14T14:58:14.201495Z  INFO iota_graphql_rpc::extensions::logger: [Validation] query_id=9eef57e6-edf0-42cd-829b-6e4b469b8919 session_id=127.0.0.1:52594 complexity=3 depth=2
2025-11-14T14:58:14.456023Z DEBUG iota_graphql_rpc::extensions::logger: [Subscription] {transactions: {__typename: "TransactionBlock", digest: "4aQ17xRBjo9bCgQLcKUdqatUjm7Yck2kUtbJTfwDfj4c"}} query_id=9eef57e6-edf0-42cd-829b-6e4b469b8919 session_id=127.0.0.1:52594

Infrastructure QA (only required for crates that are maintained by @iotaledger/infrastructure)

  • Synchronization of the indexer from genesis for a network including migration objects.
  • Restart of indexer synchronization locally without resetting the database.
  • Restart of indexer synchronization on a production-like database.
  • Deployment of services using Docker.
  • Verification of API backward compatibility.

Note

This patch does not affect the normal operations of the indexer; thus, no tests were conducted.

@sergiupopescu199 sergiupopescu199 requested a review from a team as a code owner November 14, 2025 15:00
@vercel
Copy link

vercel bot commented Nov 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
apps-backend Ignored Ignored Nov 14, 2025 3:00pm
apps-ui-kit Ignored Ignored Nov 14, 2025 3:00pm
iota-evm-bridge Ignored Ignored Nov 14, 2025 3:00pm
iota-multisig-toolkit Ignored Ignored Nov 14, 2025 3:00pm
rebased-explorer Ignored Ignored Nov 14, 2025 3:00pm
wallet-dashboard Ignored Ignored Nov 14, 2025 3:00pm

@iota-ci iota-ci added infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group. labels Nov 14, 2025
@sergiupopescu199 sergiupopescu199 linked an issue Nov 14, 2025 that may be closed by this pull request
Copy link
Contributor

@kodemartin kodemartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sergiupopescu199 sergiupopescu199 merged commit 8d7cc6f into sc-platform/feat/streaming-support Nov 17, 2025
37 of 39 checks passed
@sergiupopescu199 sergiupopescu199 deleted the sc-platform/issue-9114-graphql-log-polution-subscriptions branch November 17, 2025 10:03
sergiupopescu199 added a commit that referenced this pull request Nov 20, 2025
…es (#9294)

# Description of change

This PR modifies the log level from `INFO` to `DEBUG` for Subscription
Responses in the Logger extension to avoid log pollution.
Since every item received from the Subscription stream is treated as a
GraphQL Response. With multiple subscribers at the same time, the logs
become too polluted and hard to read.

## Links to any relevant issues

fixes #9114 

## How the change has been tested
- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)

- Ran the GraphQL server by using the iota cli
```shell
RUST_LOG=off,iota_graphql_rpc=info cargo r --features indexer -- start --force-regenesis   --with-indexer --with-graphql
```
When making Subscription requests, the logs were no longer present. If
enabling `RUST_LOG=off,iota_graphql_rpc=debug`, the logs were visible.

```shell
2025-11-14T14:58:14.201495Z  INFO iota_graphql_rpc::extensions::logger: [Validation] query_id=9eef57e6-edf0-42cd-829b-6e4b469b8919 session_id=127.0.0.1:52594 complexity=3 depth=2
2025-11-14T14:58:14.456023Z DEBUG iota_graphql_rpc::extensions::logger: [Subscription] {transactions: {__typename: "TransactionBlock", digest: "4aQ17xRBjo9bCgQLcKUdqatUjm7Yck2kUtbJTfwDfj4c"}} query_id=9eef57e6-edf0-42cd-829b-6e4b469b8919 session_id=127.0.0.1:52594
```

### Infrastructure QA (only required for crates that are maintained by
@iotaledger/infrastructure)

- [ ] Synchronization of the indexer from genesis for a network
including migration objects.
- [ ] Restart of indexer synchronization locally without resetting the
database.
- [ ] Restart of indexer synchronization on a production-like database.
- [ ] Deployment of services using Docker.
- [ ] Verification of API backward compatibility.

> [!NOTE]
> This patch does not affect the normal operations of the indexer; thus,
no tests were conducted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues related to the Infrastructure Team sc-platform Issues related to the Smart Contract Platform group.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iota-graphql-rpc]: Subscription log polution

5 participants