Some logs added

This commit is contained in:
Luis Fernando Molina committed 2018-03-02 22:30:04 +01:00
1 parent 1a76dbb561
commit df50812204
1 file changed
+16 -12
+16 -12
View File
@@ -14,10 +14,6 @@ if (CONSOLE_LOG === true && debugMode === true) {
}
const MODULE_NAME = "Node Server";
const START_BROWSER_APP = false;
let githubPages = new Map;
let ecosystem;
let ecosystemObject;
@@ -30,6 +26,12 @@ initialize();
function initialize() {
if (CONSOLE_LOG === true) {
console.log("I am entering the Initialize function. So far so good.");
}
let fs = require('fs');
try {
let fileName = 'ecosystem.json';
@@ -57,15 +59,18 @@ function initialize() {
function startHtttpServer() {
if (START_BROWSER_APP === true) {
if (CONSOLE_LOG === true) {
try {
console.log("I am entering the startHtttpServer function. So far so good.");
gWebServer = http.createServer(onBrowserRequest).listen(port);
}
catch (err) {
console.log(err);
}
}
try {
gWebServer = http.createServer(onBrowserRequest).listen(port);
}
catch (err) {
console.log(err);
}
}
@@ -74,7 +79,6 @@ function onBrowserRequest(request, response) {
var htmlResponse;
var requestParameters = request.url.split("/");
switch (requestParameters[1]) {
case "Plotters.js":