Moved logging from module to server.js.