pm2
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -10,2 +10,3 @@ | ||
const fs = require('fs') | ||
const debug = require('debug')('pm2:sysinfos') | ||
@@ -106,6 +107,6 @@ class SystemInfo { | ||
this.process.on('exit', () => { | ||
console.log('systeminfos collection process offline') | ||
this.process.on('exit', (code) => { | ||
console.log(`systeminfos collection process offline with code ${code}`) | ||
if (this.restart == true) | ||
this.fork() | ||
this.fork() | ||
}) | ||
@@ -234,3 +235,3 @@ | ||
.catch(e => { | ||
console.error(`Error when trying to retrieve static informations`, e) | ||
debug(`Error when trying to retrieve static informations`, e) | ||
}) | ||
@@ -263,3 +264,3 @@ } | ||
.catch(e => { | ||
console.error(e) | ||
debug(e) | ||
next() | ||
@@ -269,3 +270,3 @@ }) | ||
if (err) | ||
console.error(err) | ||
debug(err) | ||
this.infos.containers = new_containers.sort((a, b) => { | ||
@@ -280,3 +281,3 @@ var textA = a.name.toUpperCase(); | ||
.catch(e => { | ||
console.error(e) | ||
debug(e) | ||
return cb() | ||
@@ -293,3 +294,3 @@ }) | ||
.catch(e => { | ||
console.error(e) | ||
debug(e) | ||
}) | ||
@@ -310,3 +311,3 @@ } | ||
.catch(e => { | ||
console.error(`Error when retrieving process list`, e) | ||
debug(`Error when retrieving process list`, e) | ||
return cb() | ||
@@ -377,3 +378,3 @@ }) | ||
.catch(e => { | ||
console.error(`Error while getting memory info`, e) | ||
debug(`Error while getting memory info`, e) | ||
return cb() | ||
@@ -395,3 +396,3 @@ }) | ||
.catch(e => { | ||
console.error(`Error while retrieving filesystem infos`, e) | ||
debug(`Error while retrieving filesystem infos`, e) | ||
setTimeout(retrieveConn.bind(this), 10 * 1000) | ||
@@ -416,3 +417,3 @@ }) | ||
.catch(e => { | ||
console.error(`Error while retrieving filesystem infos`, e) | ||
debug(`Error while retrieving filesystem infos`, e) | ||
setTimeout(fsSizeCollection.bind(this), 10 * 1000) | ||
@@ -442,3 +443,3 @@ }) | ||
.catch(e => { | ||
console.error(`Error while getting network statistics`, e) | ||
debug(`Error while getting network statistics`, e) | ||
setTimeout(ioCollection.bind(this), 1000) | ||
@@ -479,3 +480,3 @@ }) | ||
.catch(e => { | ||
console.error(e) | ||
debug(e) | ||
setTimeout(latencyCollection.bind(this), 2000) | ||
@@ -524,3 +525,3 @@ }) | ||
.catch(e => { | ||
console.error(`Error on retrieving network stats`, e) | ||
debug(`Error on retrieving network stats`, e) | ||
setTimeout(networkStatsCollection.bind(this), 900) | ||
@@ -527,0 +528,0 @@ }) |
{ | ||
"name": "pm2", | ||
"preferGlobal": true, | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "embed": "12.4.0", |
Sorry, the diff of this file is too big to display
814794
17164