Merge pull request #361 from matiu/feat/log-txproposal

Feat/log txproposal
This commit is contained in:
Matias Alejo Garcia 2015-10-06 13:53:22 -03:00
commit 738418fd59
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ function Insight(opts) {
var _parseErr = function(err, res) {
if (err) {
log.warn('Insight error: ', err);
return "Insight Error";
}
log.warn("Insight " + res.request.href + " Returned Status: " + res.statusCode);

View File

@ -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;
}
};