mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-01 16:05:52 +00:00
Reduce strand re-execute log message severity to warning:
Historically strand re-execute log messages have been treated as errors. However in the vast majority of cases these log messages are caused by well understood mechanics in the payment engine. So usually these log messages should be treated as warnings.
This commit is contained in:
committed by
Nik Bougalis
parent
0d83223445
commit
67981f002f
@@ -964,7 +964,7 @@ BookStep<TIn, TOut, TDerived>::validFwd (
|
||||
if (!(checkNear (savCache.in, cache_->in) &&
|
||||
checkNear (savCache.out, cache_->out)))
|
||||
{
|
||||
JLOG (j_.error()) <<
|
||||
JLOG (j_.warn()) <<
|
||||
"Strand re-execute check failed." <<
|
||||
" ExpectedIn: " << to_string (savCache.in) <<
|
||||
" CachedIn: " << to_string (cache_->in) <<
|
||||
|
||||
@@ -725,7 +725,7 @@ DirectStepI<TDerived>::validFwd (
|
||||
|
||||
if (maxSrcToDst < cache_->srcToDst)
|
||||
{
|
||||
JLOG (j_.error()) <<
|
||||
JLOG (j_.warn()) <<
|
||||
"DirectStepI: Strand re-execute check failed." <<
|
||||
" Exceeded max src->dst limit" <<
|
||||
" max src->dst: " << to_string (maxSrcToDst) <<
|
||||
@@ -736,7 +736,7 @@ DirectStepI<TDerived>::validFwd (
|
||||
if (!(checkNear (savCache.in, cache_->in) &&
|
||||
checkNear (savCache.out, cache_->out)))
|
||||
{
|
||||
JLOG (j_.error()) <<
|
||||
JLOG (j_.warn()) <<
|
||||
"DirectStepI: Strand re-execute check failed." <<
|
||||
" ExpectedIn: " << to_string (savCache.in) <<
|
||||
" CachedIn: " << to_string (cache_->in) <<
|
||||
|
||||
@@ -251,7 +251,7 @@ flow (
|
||||
strand[i]->validFwd (checkSB, checkAfView, stepIn);
|
||||
if (!valid)
|
||||
{
|
||||
JLOG (j.error())
|
||||
JLOG (j.warn())
|
||||
<< "Strand re-execute check failed. Step: " << i;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ XRPEndpointStep<TDerived>::validFwd (
|
||||
|
||||
if (!isLast_ && balance < xrpIn)
|
||||
{
|
||||
JLOG (j_.error()) << "XRPEndpointStep: Strand re-execute check failed."
|
||||
JLOG (j_.warn()) << "XRPEndpointStep: Strand re-execute check failed."
|
||||
<< " Insufficient balance: " << to_string (balance)
|
||||
<< " Requested: " << to_string (xrpIn);
|
||||
return {false, EitherAmount (balance)};
|
||||
@@ -323,7 +323,7 @@ XRPEndpointStep<TDerived>::validFwd (
|
||||
|
||||
if (xrpIn != *cache_)
|
||||
{
|
||||
JLOG (j_.error()) << "XRPEndpointStep: Strand re-execute check failed."
|
||||
JLOG (j_.warn()) << "XRPEndpointStep: Strand re-execute check failed."
|
||||
<< " ExpectedIn: " << to_string (*cache_)
|
||||
<< " CachedIn: " << to_string (xrpIn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user