Skip to content

Commit

Permalink
Add logging and update node API of contacts server
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dale committed Feb 12, 2012
1 parent ba9c415 commit 7ba540a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contacts/server.js
@@ -1,5 +1,6 @@
var express = require('express'),
connect = require('connect');
connect = require('connect'),
util = require('util');

var app = express.createServer(
connect.logger(),
Expand Down Expand Up @@ -65,3 +66,4 @@ app.get('/contacts.json', function(req, res) {
});

app.listen(3000);
util.log("Listening on port 3000");

0 comments on commit 7ba540a

Please sign in to comment.