From 319d4cb6670729708c19ad50b0146d1bcb7b4719 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Sat, 27 Jun 2015 09:52:06 -0400 Subject: Added ability to log key events to file and email (useful for release debugging) --- www/js/MonitorCtrl.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www/js/MonitorCtrl.js') diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js index ee9605fc..bf94f48f 100644 --- a/www/js/MonitorCtrl.js +++ b/www/js/MonitorCtrl.js @@ -231,10 +231,13 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu .success(function(data) { $scope.ptzMoveCommand = (data.control.Control.CanMoveCon == '1')? 'moveCon':'move'; console.log("***moveCommand: " +$scope.ptzMoveCommand ); + ZMDataModel.zmLog ("ControlDB reports PTZ command to be " + $scope.ptzMoveCommand ); }) .error(function(data) { console.log ("** Error retrieving move PTZ command"); + ZMDataModel.zmLog ("Error retrieving PTZ command " + JSON.stringify(data),"error"); }); + } -- cgit v1.2.3