1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-20 02:27:32 +01:00

Set handleCommandError to WARN (#1012)

Those are not fatal errors for channels.
This commit is contained in:
Pierre-Marie Padiou 2019-05-27 17:33:20 +02:00 committed by GitHub
parent 648f57276a
commit b82d7211cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1704,7 +1704,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
}
def handleCommandError(cause: Throwable, cmd: Command) = {
log.error(s"${cause.getMessage} while processing cmd=${cmd.getClass.getSimpleName} in state=$stateName")
log.warning(s"${cause.getMessage} while processing cmd=${cmd.getClass.getSimpleName} in state=$stateName")
cause match {
case _: ChannelException => ()
case _ => log.error(cause, s"msg=$cmd stateData=$stateData ")