mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Removed console.log statements
This commit is contained in:
parent
96142cdfea
commit
1574297297
@ -131,7 +131,7 @@ app.controller('agentsController', function ($timeout, $scope, $location, $rootS
|
||||
.then(() => assignFilters(tab,agent))
|
||||
}
|
||||
} catch (error){
|
||||
console.log(error.message || error)
|
||||
errorHandler.handle('An error occurred while creating custom filters for visualizations','Agents',true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ app.controller('overviewController', function ($timeout, $scope, $location, $roo
|
||||
.then(() => assignFilters(tab))
|
||||
}
|
||||
} catch(error) {
|
||||
console.log(error.message || error)
|
||||
errorHandler.handle('An error occurred while creating custom filters for visualizations','Overview',true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -336,5 +336,9 @@ app.controller('overviewController', function ($timeout, $scope, $location, $roo
|
||||
$scope.wzMonitoringEnabled = true;
|
||||
}
|
||||
})
|
||||
.catch(error => {console.log(error.message || error);$scope.wzMonitoringEnabled = true});
|
||||
.catch(error => {
|
||||
$scope.wzMonitoringEnabled = true
|
||||
errorHandler.handle(error, 'Overview');
|
||||
if (!$rootScope.$$phase) $rootScope.$digest();
|
||||
});
|
||||
});
|
||||
|
@ -766,14 +766,13 @@ function discoverController(
|
||||
if(!appState || !globalState){
|
||||
$timeout(100)
|
||||
.then(() => {
|
||||
console.log('Awaiting app state...')
|
||||
return loadFilters(wzCurrentFilters)
|
||||
})
|
||||
} else {
|
||||
$state.filters = localChange ? $state.filters : [];
|
||||
|
||||
queryFilter.addFilters(wzCurrentFilters)
|
||||
.then(() => console.log('Filters loaded successfully'))
|
||||
.then(() => { })
|
||||
.catch(error => console.log(error.message || error));
|
||||
}
|
||||
}
|
||||
|
@ -171,7 +171,6 @@ export default class WazuhElastic {
|
||||
results = await this.wzWrapper.searchWazuhElementsByIndexWithRequest(req, item.title);
|
||||
} catch (error){
|
||||
forbidden = true;
|
||||
console.log(`Some user tried to fetch the index pattern ${item.title} without permissions.`)
|
||||
}
|
||||
if((results && results.hits && results.hits.total >= 1) ||
|
||||
(!forbidden && results && results.hits && results.hits.total === 0)
|
||||
|
Loading…
Reference in New Issue
Block a user