diff --git a/lib/swaps/Swaps.ts b/lib/swaps/Swaps.ts index 2d1e8f27e..6a29d84b2 100644 --- a/lib/swaps/Swaps.ts +++ b/lib/swaps/Swaps.ts @@ -907,9 +907,9 @@ class Swaps extends EventEmitter { } if (errorMessage) { - this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}`); - } else { this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}: ${errorMessage}`); + } else { + this.logger.debug(`deal ${deal.rHash} failed due to ${SwapFailureReason[failureReason]}`); } switch (failureReason) {