Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Spruced up log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerella committed Sep 14, 2013
1 parent 4ee87ec commit 4083262
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions simpleServer.js
Expand Up @@ -27,7 +27,7 @@ portLookupCallback = function() {
var uri = url.parse(request.url).pathname,
filename = path.join(rootDir, uri);

console.log(("Handling new request: " + uri).white);
console.log(("Handling " + request.method + " request: " + uri).white);

fs.exists(filename, function(exists) {
if(!exists) {
Expand All @@ -49,8 +49,6 @@ portLookupCallback = function() {
return;
}

console.log(("Serving file: " + filename).green);

response.writeHead(200, {"Content-Type": mime.lookup(filename)});
response.write(file, "binary");
response.end();
Expand Down

0 comments on commit 4083262

Please sign in to comment.