Add logging to startServer