Update server.js

Moved log statement to callback of server.start