tweetcast/nodejs/node-direct.js
changeset 334 b7f05d66b620
parent 332 738594562e44
child 335 5f83c21dee69
--- a/tweetcast/nodejs/node-direct.js	Tue Oct 25 09:20:07 2011 +0200
+++ b/tweetcast/nodejs/node-direct.js	Tue Oct 25 09:36:21 2011 +0200
@@ -167,9 +167,11 @@
 }
 
 function httpHandler(req, res) {
+    console.log("HTTP Request for URL "+req.url);
     var url = req.url + ( req.url[req.url.length - 1] == "/" ? "index.html" : "" );
     fs.readFile(__dirname + "/client" + url, function(err, data) {
         if (err) {
+            console.log("Error 404");
             res.writeHead(404);
             return res.end('File not found');
         }