diff --git a/src/js/controllers/activity.js b/src/js/controllers/activity.js index e9c140449..304e5b62b 100644 --- a/src/js/controllers/activity.js +++ b/src/js/controllers/activity.js @@ -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; }); }); diff --git a/src/js/controllers/modals/txDetails.js b/src/js/controllers/modals/txDetails.js index 7f3dacf10..83908e36e 100644 --- a/src/js/controllers/modals/txDetails.js +++ b/src/js/controllers/modals/txDetails.js @@ -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; } diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index 5ef002425..0773f68af 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -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; }); }); diff --git a/src/js/services/popupService.js b/src/js/services/popupService.js index 486039a3b..48e09e47b 100644 --- a/src/js/services/popupService.js +++ b/src/js/services/popupService.js @@ -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);