From d919f69ce2cb378af5f0d1af12d193a021a6cdd9 Mon Sep 17 00:00:00 2001
From: Jaden Diefenbaugh <blakcap@users.noreply.github.com>
Date: Tue, 28 Mar 2017 10:42:01 +0200
Subject: [PATCH] rm unnecessary logging

---
 .../static/reports/app/controllers/reportController.js   | 1 -
 .../static/reports/app/services/experimentsService.js    | 9 +--------
 .../reports/static/reports/app/services/reportService.js | 3 ++-
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/beat/web/reports/static/reports/app/controllers/reportController.js b/beat/web/reports/static/reports/app/controllers/reportController.js
index f1a98c82d..3db7e558c 100644
--- a/beat/web/reports/static/reports/app/controllers/reportController.js
+++ b/beat/web/reports/static/reports/app/controllers/reportController.js
@@ -22,7 +22,6 @@
 //This controller retrieves data from the reportFactory/experimentFactory through the REST API and associates it with the $scope
 //The $scope is ultimately bound to the report view
 angular.module('reportApp').controller('reportController',['$scope', 'reportFactory', 'experimentFactory', 'plotterFactory', 'dataFactory', '$q', 'ReportService', function ($scope, reportFactory, experimentFactory, plotterFactory, dataFactory, $q, ReportService){
-	console.log($scope);
 	$scope.q = $q;
 	$scope.user;
 	$scope.report_id;
diff --git a/beat/web/reports/static/reports/app/services/experimentsService.js b/beat/web/reports/static/reports/app/services/experimentsService.js
index 41042dd36..90a413959 100644
--- a/beat/web/reports/static/reports/app/services/experimentsService.js
+++ b/beat/web/reports/static/reports/app/services/experimentsService.js
@@ -147,11 +147,8 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory',
 
 	// make sure there are no invalid experiments in the report's groups
 	const cleanGroups = (validExpNames) => {
-		console.log(`valid exp names: ${validExpNames}`);
 		GroupsService.groups.forEach(g => {
-			console.log(`Found group: ${g.name}`);
 			g.experiments.forEach(e => {
-				console.log(`Found exp in ${g.name}: ${e}`);
 				// when the user can see the exp, the full name of the exp is available,
 				// including the user who made it, and the toolchain
 				const fullNameValid = validExpNames.includes(e);
@@ -159,7 +156,7 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory',
 				// only the actual name of the exp is available
 				const partNameValid = validExpNames.includes(e.split('/').pop());
 				if(!(fullNameValid || partNameValid)){
-					console.log(`NOT VALID: ${e}`);
+					console.log(`INVALID EXPERIMENT: ${e}`);
 					g.removeExperiment(e);
 				}
 			});
@@ -171,9 +168,6 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory',
 		const namePath = UrlService.getByNamePath();
 		const numberPath = UrlService.getByNumberPath();
 
-		console.log(namePath);
-		console.log(numberPath);
-
 		if(namePath && namePath.length > 0){
 			// get exps by report num
 			const user = namePath.split('/')[1];
@@ -182,7 +176,6 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory',
 		} else if(numberPath && numberPath.length > 0){
 			//by report author
 			const num = numberPath.split('/')[1];
-			console.log(numberPath.split('/'));
 			expFetch = experimentFactory.getAllExperimentResults('', num);
 		}
 
diff --git a/beat/web/reports/static/reports/app/services/reportService.js b/beat/web/reports/static/reports/app/services/reportService.js
index 542b93a04..c22048666 100644
--- a/beat/web/reports/static/reports/app/services/reportService.js
+++ b/beat/web/reports/static/reports/app/services/reportService.js
@@ -38,7 +38,6 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF
 	rs.plotterParameters = [];
 
 	rs.processReport = (report) => {
-		console.log(`processing report:`);
 		console.log(report);
 
 		rs.isAnonymous = report.anonymous;
@@ -65,5 +64,7 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF
 		});
 	};
 
+	console.log(rs);
+
 	return rs;
 }]);
-- 
GitLab