diff --git a/server-console/src/log.js b/server-console/src/log.js index 82eef209a6..365d1d37d1 100644 --- a/server-console/src/log.js +++ b/server-console/src/log.js @@ -61,7 +61,6 @@ ready = function() { var oldLogFilePaths = Object.keys(watchList); var diff = difference(oldLogFilePaths, newLogFilePaths); - console.log('diff', diff); // For each removed file, remove it from our watch list diff.subtract.forEach(function(removedLogFilePath) { watchList[removedLogFilePath].unwatch(); diff --git a/server-console/src/modules/hf-process.js b/server-console/src/modules/hf-process.js index c7f21ebbe5..ce20e385f3 100755 --- a/server-console/src/modules/hf-process.js +++ b/server-console/src/modules/hf-process.js @@ -272,7 +272,7 @@ Process.prototype = extend(Process.prototype, { // ACMonitorProcess is an extension of Process that keeps track of the AC Montior's // children status and log locations. -const CHECK_AC_STATUS_INTERVAL = 5000; +const CHECK_AC_STATUS_INTERVAL = 1000; function ACMonitorProcess(name, path, args, httpStatusPort, logPath) { Process.call(this, name, path, args, logPath); @@ -312,7 +312,6 @@ ACMonitorProcess.prototype = extend(ACMonitorProcess.prototype, { stderr: this.childServers[pid].logStderr } } - console.log(logs); return logs; }, _updateACMonitorStatus: function() { @@ -325,18 +324,18 @@ ACMonitorProcess.prototype = extend(ACMonitorProcess.prototype, { return; } - console.log("Checking AC Monitor status"); var options = { url: "http://localhost:" + this.httpStatusPort + "/status", json: true }; this.pendingRequest = request(options, function(error, response, body) { + this.pendingRequest = null; + if (error) { console.error('ERROR Getting AC Monitor status', error); } else { this.childServers = body.servers; } - console.log(body); this.emit('logs-updated');