mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(log) do not log pid not found when using modules
This commit is contained in:
parent
0a9bace40a
commit
3a8a2a6afa
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user