mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 06:35:11 +01:00
Better logging for NegativeProbability exception (#2171)
Show details that lead to this exception.
This commit is contained in:
parent
ca71a3c152
commit
66aafd6872
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ object RouteCalculation {
|
||||||
Metrics.FindRouteErrors.withTags(tags.withTag(Tags.Error, "InfiniteLoop")).increment()
|
Metrics.FindRouteErrors.withTags(tags.withTag(Tags.Error, "InfiniteLoop")).increment()
|
||||||
ctx.sender() ! Status.Failure(failure)
|
ctx.sender() ! Status.Failure(failure)
|
||||||
case Failure(failure: NegativeProbability) =>
|
case Failure(failure: NegativeProbability) =>
|
||||||
log.error(s"computed negative probability $failure")
|
log.error(s"computed negative probability: edge=${failure.edge}, weight=${failure.weight}, heuristicsConstants=${failure.heuristicsConstants}")
|
||||||
Metrics.FindRouteErrors.withTags(tags.withTag(Tags.Error, "NegativeProbability")).increment()
|
Metrics.FindRouteErrors.withTags(tags.withTag(Tags.Error, "NegativeProbability")).increment()
|
||||||
ctx.sender() ! Status.Failure(failure)
|
ctx.sender() ! Status.Failure(failure)
|
||||||
case Failure(t) =>
|
case Failure(t) =>
|
||||||
|
|
Loading…
Add table
Reference in a new issue