diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-17 06:39:21 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-17 06:39:21 -0400 |
| commit | 50f2e00b5be8c0e13e5790c11cc2dc234577d447 (patch) | |
| tree | 03a70932ea971e95945f80af14d2f6b3488614f6 /www/js/LogCtrl.js | |
| parent | 5fd82a0af94d171db46f09b49a41fd5759e665f3 (diff) | |
removed dynamic log update - its mostly useless except for websockets
Diffstat (limited to 'www/js/LogCtrl.js')
| -rw-r--r-- | www/js/LogCtrl.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/www/js/LogCtrl.js b/www/js/LogCtrl.js index 1103a423..f9504034 100644 --- a/www/js/LogCtrl.js +++ b/www/js/LogCtrl.js @@ -19,18 +19,18 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo function onPause() { ZMDataModel.zmDebug("LogCtrl: pause called, killing log timer"); - $interval.cancel(intervalLogUpdateHandle); + // $interval.cancel(intervalLogUpdateHandle); } function onResume() { ZMDataModel.zmDebug("LogCtrl: resume called, starting log timer"); - intervalLogUpdateHandle = $interval(function () + /* intervalLogUpdateHandle = $interval(function () { loadLogs(); - }.bind(this), 3000); + }.bind(this), 3000);*/ loadLogs(); } @@ -144,6 +144,8 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo function loadLogs() { //console.log ("GETTING LOGS"); + + $fileLogger.getLogfile().then(function (l) { @@ -173,12 +175,13 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo }; $scope.zmAppVersion = ZMDataModel.getAppVersion(); - - intervalLogUpdateHandle = $interval(function () + + + /* intervalLogUpdateHandle = $interval(function () { loadLogs(); - }.bind(this), 3000); + }.bind(this), 3000);*/ loadLogs(); @@ -189,7 +192,7 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo $scope.$on('$ionicView.leave', function () { console.log ("Deleting Log interval..."); - $interval.cancel(intervalLogUpdateHandle); + // $interval.cancel(intervalLogUpdateHandle); }); }]); |
