Skip to content

Conversation

intelliot
Copy link
Contributor

High Level Overview of Change

Reduce log noise by changing two log statements from error/warn level to debug level. These logs occur during normal operation when AMM offers are not available or when IOU authorization checks fail, which are expected scenarios that don't require an elevated log level.

Context of Change

During normal path-finding operations, the following scenarios frequently occur and generate unnecessary error/warning logs:

  1. AMM liquidity checks may not find offers with competitive liquidity - normal
  2. DirectStep IOU payment checks may fail due to missing authorization - this is an expected validation while exploring payment paths that require authorization

These situations are not errors but expected behaviors during path-finding. The excessive logging at error/warn levels creates noise in production logs, making it harder to identify actual issues.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

API Impact

  • No API impact - this change only affects internal logging levels

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reduces log noise by downgrading two log statements from error/warn to debug level. These logs occur during normal pathfinding operations when expected scenarios happen that don't warrant elevated logging.

  • Change DirectStep IOU authorization check log from warn to debug level
  • Change AMMLiquidity offer retrieval log from error to debug level and improve message clarity

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/xrpld/app/paths/detail/DirectStep.cpp Downgrades IOU authorization failure log from warn to debug level
src/xrpld/app/paths/detail/AMMLiquidity.cpp Downgrades AMM offer retrieval log from error to debug and improves message clarity

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.8%. Comparing base (de33a6a) to head (bc253a7).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/xrpld/app/paths/detail/AMMLiquidity.cpp 0.0% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #5686     +/-   ##
=========================================
- Coverage     78.8%   78.8%   -0.0%     
=========================================
  Files          814     814             
  Lines        71304   71303      -1     
  Branches      8348    8369     +21     
=========================================
- Hits         56187   56160     -27     
- Misses       15117   15143     +26     
Files with missing lines Coverage Δ
src/xrpld/app/paths/detail/DirectStep.cpp 82.3% <100.0%> (ø)
src/xrpld/app/paths/detail/AMMLiquidity.cpp 84.7% <0.0%> (ø)

... and 7 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@intelliot intelliot added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Aug 14, 2025
@bthomee bthomee merged commit a14551b into XRPLF:develop Aug 14, 2025
24 of 25 checks passed
@intelliot intelliot deleted the debug-log-amm-and-payment-step branch August 14, 2025 16:34
ximinez added a commit that referenced this pull request Aug 18, 2025
…actoring-1

* XRPLF/develop:
  fix: Modify jobs to use '>>' instead of 'tee' for GITHUB_OUTPUT (#5699)
  refactor: Revamp CI workflows (#5661)
  refactor: Decouple net from xrpld and move rpc-related classes to the rpc folder (#5477)
  Set version to 2.6.0-rc2
  docs: Updates list of maintainers and reviewers (#5687)
  fix: Change log to debug level for AMM offer retrieval and IOU payment check (#5686)
  fix: Add -Wno-deprecated-declarations for Clang only (#5680)
  Update .git-blame-ignore-revs for #5657 (#5675)
  Fix BUILD.md instruction (#5676)
  Set version to 2.6.0-rc1
  fix: Improve logging of the reason to refuse a peer connection (#5664)
  fix: Make test suite names match the directory name (#5597)
  chore: Run prettier on all files (#5657)
  chore: Set CONAN_REMOTE_URL also for forks (#5662)
  chore: Cleanup bin/ directory (#5660)
  perf: Optimize hash performance by avoiding allocating hash state object (#5469)
ximinez added a commit that referenced this pull request Aug 18, 2025
…to ximinez/lending-XLS-66

* XRPLF/ximinez/lending-refactoring-4:
  fix: Modify jobs to use '>>' instead of 'tee' for GITHUB_OUTPUT (#5699)
  refactor: Revamp CI workflows (#5661)
  refactor: Decouple net from xrpld and move rpc-related classes to the rpc folder (#5477)
  Set version to 2.6.0-rc2
  docs: Updates list of maintainers and reviewers (#5687)
  fix: Change log to debug level for AMM offer retrieval and IOU payment check (#5686)
  fix: Add -Wno-deprecated-declarations for Clang only (#5680)
  Update .git-blame-ignore-revs for #5657 (#5675)
  Fix BUILD.md instruction (#5676)
  Set version to 2.6.0-rc1
  fix: Improve logging of the reason to refuse a peer connection (#5664)
  fix: Make test suite names match the directory name (#5597)
  chore: Run prettier on all files (#5657)
  chore: Set CONAN_REMOTE_URL also for forks (#5662)
  chore: Cleanup bin/ directory (#5660)
  perf: Optimize hash performance by avoiding allocating hash state object (#5469)
yinyiqian1 pushed a commit to yinyiqian1/rippled that referenced this pull request Aug 20, 2025
…t check (XRPLF#5686)

Reduce log noise by changing two log statements from error/warn level to debug level. These logs occur during normal operation when AMM offers are not available or when IOU authorization checks fail, which are expected scenarios that don't require an elevated log level.
This was referenced Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants