Skip to content

Commit e12241b

Browse files
committed
rebalance: log errors of our own channels
1 parent 151fddf commit e12241b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rebalance/rebalance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,12 @@ def rebalance(
535535
erring_channel = e.error.get("data", {}).get("erring_channel")
536536
erring_direction = e.error.get("data", {}).get("erring_direction")
537537
if erring_channel == incoming_scid:
538+
plugin.log(f"Error with incoming channel: {e}")
538539
raise RpcError(
539540
"rebalance", payload, {"message": "Error with incoming channel"}
540541
)
541542
if erring_channel == outgoing_scid:
543+
plugin.log(f"Error with outgoing channel: {e}")
542544
raise RpcError(
543545
"rebalance", payload, {"message": "Error with outgoing channel"}
544546
)

0 commit comments

Comments
 (0)