Skip to content

refactor: revert logger.level, add logger.filter, extend config routes#5384

Merged
0x009922 merged 2 commits intohyperledger-iroha:mainfrom
0x009922:log-filter-cfg-endpoint
Apr 4, 2025
Merged

refactor: revert logger.level, add logger.filter, extend config routes#5384
0x009922 merged 2 commits intohyperledger-iroha:mainfrom
0x009922:log-filter-cfg-endpoint

Conversation

@0x009922
Copy link
Copy Markdown
Contributor

@0x009922 0x009922 commented Mar 28, 2025

Close #5365
Close #5247
Partially revert #4837

Config Changes

  • Return logger.level (LOG_LEVEL) to its original state. It does no longer accept "directives", but only plain log level.
  • Add logger.filter (LOG_FILTER) that supports the directives syntax. It is an optional parameter.
  • When there are both logger.level and logger.filter, they are combined. It means that if logger.level = "INFO" and logger.filter = "iroha_core=debug", the resulting filter set will be info,iroha_core=debug.
  • (testing) Add TEST_LOG_FILTER env for test logger

API Changes

  • GET /config returns more parameters:
    • logger.filter
    • network.block_gossip_size
    • network.block_gossip_period_ms
    • network.transaction_gossip_size
    • network.transaction_gossip_period_ms
    • queue.capacity
  • POST /config accepts both logger.level and logger.filter

@0x009922 0x009922 added api-changes Changes in the API for client libraries config-changes Changes in configuration and start up of the Iroha labels Mar 28, 2025
@0x009922 0x009922 self-assigned this Mar 28, 2025
@github-actions
Copy link
Copy Markdown

@BAStos525

@0x009922 0x009922 changed the title refactor: extend returned config params + fix log level refactor: extend returned config params + fix log level" vs. "refactor: revert logger.level, add logger.filter, extend config routes Mar 28, 2025
@0x009922 0x009922 changed the title refactor: extend returned config params + fix log level" vs. "refactor: revert logger.level, add logger.filter, extend config routes refactor: revert logger.level, add logger.filter, extend config routes Mar 28, 2025
@0x009922 0x009922 force-pushed the log-filter-cfg-endpoint branch from 8b0d594 to ce13d17 Compare March 28, 2025 05:29
…outes

Close hyperledger-iroha#5365
Close hyperledger-iroha#5247
Revert hyperledger-iroha#4837

Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
@0x009922 0x009922 force-pushed the log-filter-cfg-endpoint branch from ce13d17 to defe862 Compare March 31, 2025 01:22
@0x009922 0x009922 merged commit beb5f5d into hyperledger-iroha:main Apr 4, 2025
14 checks passed
0x009922 added a commit to 0x009922/iroha that referenced this pull request Apr 9, 2025
+ some residuals from hyperledger-iroha#5384

Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
0x009922 added a commit to 0x009922/iroha that referenced this pull request Apr 30, 2025
+ some residuals from hyperledger-iroha#5384

Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-changes Changes in the API for client libraries config-changes Changes in configuration and start up of the Iroha

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend GET /configuration with more params [BUG] LOG_LEVEL is for Level, not for advanced log filtering.

3 participants