diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-06-27 09:52:06 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-06-27 09:52:06 -0400 |
| commit | 319d4cb6670729708c19ad50b0146d1bcb7b4719 (patch) | |
| tree | c61e9723a1fd217b1816c987bba66e470e73bf02 /www/js/StateCtrl.js | |
| parent | fdc42fae48db0fef5fbdc9ef51a27d219aea3a72 (diff) | |
Added ability to log key events to file and email (useful for release debugging)
Diffstat (limited to 'www/js/StateCtrl.js')
| -rw-r--r-- | www/js/StateCtrl.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index ec3a771a..cf6d97d9 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -64,6 +64,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' function (error) { $scope.zmDisk = "unknown"; console.log("ERROR:" + JSON.stringify(error)); + ZMDataModel.zmLog("Error retrieving DiskStatus: " + JSON.stringify(error),"error"); } ); } @@ -95,6 +96,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' }, function (error) { console.log("ERROR in getRun: " + JSON.stringify(error)); + ZMDataModel.zmLog("Error getting RunStatus " + JSON.stringify(error),"error"); $scope.color = 'color:red;'; $scope.zmRun = 'undetermined'; } @@ -119,6 +121,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' }, function (error) { console.log("ERROR in getLoad: " + JSON.stringify(error)); + ZMDataModel.zmLog("Error retrieving loadStatus " + JSON.stringify(error),"error"); $scope.zmLoad = 'undetermined'; } ); @@ -176,6 +179,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' //if (error.status) // it seems to return error with status 0 if ok // { console.log("ERROR in Change State:" + JSON.stringify(error)); + ZMDataModel.zmLog("Error in change run state:"+JSON.stringify(error),"error"); $scope.zmRun = 'undetermined'; $scope.color = 'color:orange;'; inProgress = 0; |
