From d03de0dc5c513373b62d2e3e6ef6b7810795782c Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 11 Dec 2016 00:09:29 +0800 Subject: [PATCH] log message when show error dialog --- src/scripts/services/ariaNgCommonService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/services/ariaNgCommonService.js b/src/scripts/services/ariaNgCommonService.js index 6c840dd..aecfa4d 100644 --- a/src/scripts/services/ariaNgCommonService.js +++ b/src/scripts/services/ariaNgCommonService.js @@ -1,7 +1,7 @@ (function () { 'use strict'; - angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', 'base64', 'SweetAlert', '$translate', 'ariaNgConstants', function ($location, $timeout, base64, SweetAlert, $translate, ariaNgConstants) { + angular.module('ariaNg').factory('ariaNgCommonService', ['$location', '$timeout', 'base64', 'SweetAlert', '$translate', 'ariaNgConstants', 'ariaNgLogService', function ($location, $timeout, base64, SweetAlert, $translate, ariaNgConstants, ariaNgLogService) { return { generateUniqueId: function () { var sourceId = ariaNgConstants.appPrefix + '_' + Math.round(new Date().getTime() / 1000) + '_' + Math.random(); @@ -20,6 +20,7 @@ }, 100); }, showError: function (text) { + ariaNgLogService.error("[Error Dialog] " + text); this.showDialog('Error', text, 'error'); }, showOperationSucceeded: function (text) {