Skip to content

Commit

Permalink
log invalid remote channel parameters as warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Oct 14, 2021
1 parent 3995135 commit c00c557
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2303,6 +2303,9 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder, remo
cause match {
case _: ForcedLocalCommit =>
log.warning(s"force-closing channel at user request")
case _ if msg.exists(_.isInstanceOf[OpenChannel]) =>
// invalid remote channel parameters are logged as warning
log.warning(s"${cause.getMessage} while processing msg=${msg.getOrElse("n/a").getClass.getSimpleName} in state=$stateName")
case _: ChannelException =>
log.error(s"${cause.getMessage} while processing msg=${msg.getOrElse("n/a").getClass.getSimpleName} in state=$stateName")
case _ =>
Expand Down

0 comments on commit c00c557

Please sign in to comment.