Merge pull request #500 from gabrielbazan7/fix/logs

fix log messages
This commit is contained in:
Matias Alejo Garcia 2016-10-17 11:24:51 -03:00 committed by GitHub
commit 744b03a0f7
4 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('activityController',
$scope.openTxpModal = txpModalService.open;
$scope.fetchingNotifications = true;
$scope.$on("$ionicView.enter", function(event, data){
$scope.$on("$ionicView.enter", function(event, data) {
profileService.getNotifications(50, function(err, n) {
if (err) {
$log.error(err);
@ -74,7 +74,7 @@ angular.module('copayApp.controllers').controller('activityController',
});
walletService.getTxNote(wallet, n.txid, function(err, note) {
if (err) $log.debug('Could not fetch transaction note');
if (err) $log.warn('Could not fetch transaction note: ' + err);
$scope.btx.note = note;
});
});

View File

@ -29,7 +29,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
function updateMemo() {
walletService.getTxNote(wallet, $scope.btx.txid, function(err, note) {
if (err) {
$log.warn('Could not fetch transaction note ' + err);
$log.warn('Could not fetch transaction note: ' + err);
return;
}

View File

@ -76,7 +76,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
});
walletService.getTxNote(wallet, n.txid, function(err, note) {
if (err) $log.debug(gettextCatalog.getString('Could not fetch transaction note'));
if (err) $log.warn('Could not fetch transaction note: ' + err);
$scope.btx.note = note;
});
});

View File

@ -77,7 +77,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
this.showAlert = function(title, msg, cb, buttonName) {
var message = (msg && msg.message) ? msg.message : msg;
$log.warn(title + ": " + message);
$log.warn(title ? (title + ': ' + message) : message);
if (isCordova)
_cordovaAlert(title, message, cb, buttonName);
@ -97,7 +97,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
*/
this.showConfirm = function(title, message, okText, cancelText, cb) {
$log.warn(title + ": " + message);
$log.warn(title ? (title + ': ' + message) : message);
if (isCordova)
_cordovaConfirm(title, message, okText, cancelText, cb);
@ -116,7 +116,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni
*/
this.showPrompt = function(title, message, opts, cb) {
$log.warn(title + ": " + message);
$log.warn(title ? (title + ': ' + message) : message);
if (isCordova && !opts.forceHTMLPrompt)
_cordovaPrompt(title, message, opts, cb);