From 95e41050bdb1394230c71744e41da1f271ddd4fb Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 14 Sep 2015 14:59:49 -0300 Subject: [PATCH] add log --- lib/model/txproposal.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/model/txproposal.js b/lib/model/txproposal.js index 546c66f..b05d466 100644 --- a/lib/model/txproposal.js +++ b/lib/model/txproposal.js @@ -3,6 +3,10 @@ var _ = require('lodash'); var $ = require('preconditions').singleton(); var Uuid = require('uuid'); +var log = require('npmlog'); +log.debug = log.verbose; +log.disableColor(); + var WalletUtils = require('bitcore-wallet-utils'); var Bitcore = WalletUtils.Bitcore; var Address = Bitcore.Address; @@ -310,6 +314,7 @@ TxProposal.prototype.sign = function(copayerId, signatures, xpub) { return true; } catch (e) { + log.debug(e); return false; } };