Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Reduced logging
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed May 16, 2015
1 parent ae257e0 commit ba71c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Server.prototype.initializeApp = function() {
response[c] = results.filter(Utils.hasCategory.bind(null, c.split(',')));
}, this);

console.log('<<< Final Response is', response);
//console.log('<<< Final Response is', response);

return res.send(JSON.stringify(response));
});
Expand All @@ -109,7 +109,7 @@ Server.prototype.initializeApp = function() {
Server.prototype._request = function(req, requestor, callback) {
if (_.intersection(req.types, requestor.getCategories()).length) {
requestor.request(req, function(err, results) {
console.log('<<< Results from '+requestor.getName()+':', results);
console.log('<<< Received '+results.length+' results from '+requestor.getName());
return callback(err, results);
});
} else {
Expand Down
1 change: 0 additions & 1 deletion src/server/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var getAttribute = function(attr, obj){
* @return {Boolean}
*/
var hasCategory = function(categories, result) {
console.log('checking categories for', result, '(', categories, ')');
var shared = _.intersection(categories, result.types);
return shared.length > 0;
};
Expand Down

0 comments on commit ba71c2e

Please sign in to comment.