less verbose startup, better log messages at startup

pull/667/head
Matthias Bartelmeß 2012-04-20 22:44:10 +02:00
parent 7f50e8f551
commit 8fefb551fc
1 changed files with 6 additions and 6 deletions

View File

@ -66,9 +66,9 @@ async.waterfall([
plugins.update, plugins.update,
function (callback) { function (callback) {
console.log("Installed plugins: " + plugins.formatPlugins()); console.info("Installed plugins: " + plugins.formatPlugins());
console.log("Installed parts:\n" + plugins.formatParts()); console.debug("Installed parts:\n" + plugins.formatParts());
console.log("Installed hooks:\n" + plugins.formatHooks()); console.debug("Installed hooks:\n" + plugins.formatHooks());
callback(); callback();
}, },
@ -89,12 +89,12 @@ async.waterfall([
//let the server listen //let the server listen
app.listen(settings.port, settings.ip); app.listen(settings.port, settings.ip);
console.log("Server is listening at " + settings.ip + ":" + settings.port); console.log("You can access your Etherpad-Lite instance at http://" + settings.ip + ":" + settings.port + "/");
if(!_.isEmpty(settings.users)){ if(!_.isEmpty(settings.users)){
console.log("Plugin admin page listening at " + settings.ip + ":" + settings.port + "/admin/plugins"); console.log("The plugin admin page is at http://" + settings.ip + ":" + settings.port + "/admin/plugins");
} }
else{ else{
console.log("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json"); console.warn("Admin username and password not set in settings.json. To access admin please uncomment and edit 'users' in settings.json");
} }
callback(null); callback(null);
} }