(log) do not log pid not found when using modules

This commit is contained in:
Unitech 2016-09-28 14:43:51 +02:00
parent 0a9bace40a
commit 3a8a2a6afa
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
- #2400 Create log/pid default folder even if the root folder is already created
- #2395 CRON feature now call PM2 for app to be killed (allow to use SIGINT)
- #2405 #2406 drop unhandledRejection auto catch
- Do no display error when pidusage try to monitor an unknow PID (modules)
## 2.0.15

View File

@ -57,8 +57,9 @@ module.exports = function(God) {
pidusage.stat(pid, function retPidUsage(err, res) {
if (err) {
console.error('Error caught while calling pidusage');
console.error(err);
// Do not log, some time modules does not retrieve PID
// console.error('Error caught while calling pidusage');
// console.error(err);
pro['monit'] = {
memory : 0,
cpu : 0