Skip to content

Commit a14551b

Browse files
authored
fix: Change log to debug level for AMM offer retrieval and IOU payment check (#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.
1 parent de33a6a commit a14551b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xrpld/app/paths/detail/AMMLiquidity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ AMMLiquidity<TIn, TOut>::getOffer(
248248
return offer;
249249
}
250250

251-
JLOG(j_.error()) << "AMMLiquidity::getOffer, failed "
251+
JLOG(j_.debug()) << "AMMLiquidity::getOffer, no valid offer "
252252
<< ammContext_.multiPath() << " "
253253
<< ammContext_.curIters() << " "
254254
<< (clobQuality ? clobQuality->rate() : STAmount{})

src/xrpld/app/paths/detail/DirectStep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ DirectIPaymentStep::check(
423423
!((*sleLine)[sfFlags] & authField) &&
424424
(*sleLine)[sfBalance] == beast::zero)
425425
{
426-
JLOG(j_.warn())
426+
JLOG(j_.debug())
427427
<< "DirectStepI: can't receive IOUs from issuer without auth."
428428
<< " src: " << src_;
429429
return terNO_AUTH;

0 commit comments

Comments
 (0)