diff --git a/README.md b/README.md index 723a162c..b5944ae3 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ $ pm2 save We are working on Keymetrics, a monitoring SaaS for PM2. It's still in beta, feel free to give it a try: -[Discover Keymetrics monitoring for PM2](https://keymetrics.io/) +[Discover the monitoring dashboard for PM2](https://app.keymetrics.io/#/register) Thanks in advance and we hope that you like PM2! diff --git a/lib/God.js b/lib/God.js index cc102675..c0c05447 100644 --- a/lib/God.js +++ b/lib/God.js @@ -414,7 +414,7 @@ God.finalizeProcedure = function finalizeProcedure(proc) { var proc_id = proc.pm2_env.pm_id; if (proc.pm2_env.vizion_running === true) { - console.log('Vizion is already running for proc id: %d, skipping this round', proc_id); + debug('Vizion is already running for proc id: %d, skipping this round', proc_id); return God.notify('online', proc); } diff --git a/lib/HttpInterface.js b/lib/HttpInterface.js index b147769b..74798cc3 100644 --- a/lib/HttpInterface.js +++ b/lib/HttpInterface.js @@ -28,7 +28,7 @@ http.createServer(function (req, res) { var path = urlT.parse(req.url).pathname; - console.log('Access on PM2 monit point %s', path); +// console.log('Access on PM2 monit point %s', path); if (path == '/') { diff --git a/lib/Log.js b/lib/Log.js index 91fe0fd3..8d084c72 100644 --- a/lib/Log.js +++ b/lib/Log.js @@ -95,7 +95,7 @@ Log.stream = function(path, title, lines){ // handle error. tail.stderr.on('data', function(data){ - tail.disconnect(); + tail.disconnect && tail.disconnect(); console.info(title, chalk.red(data.toString().replace(/\n/, ''))); }); diff --git a/lib/Worker.js b/lib/Worker.js index fa87c80a..520dfef8 100644 --- a/lib/Worker.js +++ b/lib/Worker.js @@ -68,7 +68,7 @@ module.exports = function(God) { if (proc.pm2_env.vizion_running === true) { - console.log('Vizion is already running for proc id: %d, skipping this round', proc.pm2_env.pm_id); + debug('Vizion is already running for proc id: %d, skipping this round', proc.pm2_env.pm_id); return cb(); }