Added logging framework.

This commit is contained in:
baldo 2016-05-24 16:40:57 +02:00
commit a82b66c637
12 changed files with 171 additions and 29 deletions

View file

@ -1,11 +1,11 @@
'use strict';
angular.module('ffffng').factory('NodeInformationRetrievalJob', function (MonitoringService) {
angular.module('ffffng').factory('NodeInformationRetrievalJob', function (MonitoringService, Logger) {
return {
run: function () {
MonitoringService.retrieveNodeInformation(function (err) {
if (err) {
console.error(err);
Logger.tag('monitoring', 'information-retrieval').error('Error retrieving node data:', err);
}
});
}