1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove console.log debug

This commit is contained in:
Nick O'Leary 2014-03-09 22:34:45 +00:00
parent 15002f6872
commit d5ad113d1b

4
red.js
View File

@ -104,10 +104,8 @@ if (settings.httpAdminRoot !== false) {
settings.httpAdminAuth = settings.httpAdminAuth || settings.httpAuth;
}
console.log("1:"+settings.httpNodeRoot);
if (settings.httpNodeRoot !== false) {
settings.httpNodeRoot = formatRoot(settings.httpNodeRoot || settings.httpRoot || "/");
console.log("2:"+settings.httpNodeRoot);
settings.httpNodeAuth = settings.httpNodeAuth || settings.httpAuth;
}
@ -133,11 +131,9 @@ if (settings.httpNodeRoot !== false && settings.httpNodeAuth) {
);
}
if (settings.httpAdminRoot !== false) {
console.log("Attaching admin root");
app.use(settings.httpAdminRoot,RED.httpAdmin);
}
if (settings.httpNodeRoot !== false) {
console.log(settings.httpNodeRoot);
app.use(settings.httpNodeRoot,RED.httpNode);
}