Skip to content

Commit

Permalink
Removed unnecessary log prints
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbrook committed May 30, 2012
1 parent 4c3ddbb commit 79a7390
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions build/routes.js
Expand Up @@ -38,7 +38,6 @@

success = function(results, res) {
var responseText;
console.log("Found " + results.length + " results");
responseText = JSON.stringify(results);
res.writeHead(200, {
"Content-Type": "application/json",
Expand Down Expand Up @@ -70,7 +69,6 @@
if (!latitude || !longitude) {
return error(400, "Please provide lat and lon query parameters", res);
}
console.log("Incoming request to /stores with coordinates " + latitude + ", " + longitude);
return get_stores_from_coordinates([latitude, longitude], 1, function(err, results) {
if (!err) {
return success(results, res);
Expand Down
3 changes: 0 additions & 3 deletions src/routes.coffee
Expand Up @@ -30,7 +30,6 @@ get_stores_from_coordinates = (coords, limit, callback) ->


success = (results, res) ->
console.log "Found #{results.length} results"
responseText = JSON.stringify results
res.writeHead 200, "Content-Type": "application/json", "Content-Length": Buffer.byteLength(responseText)
res.end responseText
Expand All @@ -57,8 +56,6 @@ exports.stores = (req, res) ->
if not latitude or not longitude
return error 400, "Please provide lat and lon query parameters", res

console.log "Incoming request to /stores with coordinates #{latitude}, #{longitude}"

get_stores_from_coordinates [latitude, longitude], 1, (err, results) ->
if not err then success(results, res)
else error(err, res)

0 comments on commit 79a7390

Please sign in to comment.