Pm2: Deprecation warning message

Created on 25 Oct 2016  路  5Comments  路  Source: Unitech/pm2

Most helpful comment

Still get this warning message on PM2 version 2.4.2
(node:6246) DeprecationWarning: worker.suicide is deprecated. Please use worker.exitedAfterDisconnect.

All 5 comments

landed in development

Still get this warning message on PM2 version 2.4.2
(node:6246) DeprecationWarning: worker.suicide is deprecated. Please use worker.exitedAfterDisconnect.

@Unitech is the 27-Oct-2016 commit going to fix the boring warning PM2 always throws when starting?
PM2 | 2017-10-04 10:30:49: (node:3757) [DEP0007] DeprecationWarning: worker.suicide is deprecated. Please use worker.exitedAfterDisconnect.

As said on the nodejs issue :

The log spam was a result of a module used by PM2 that walks an object's members mutating functions. Since it has to check for each member's functionness, it was calling typeof obj[key] and triggering this deprecation message.

So, removing this flag will not break PM2. They don't use it for anything.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

FujiHaruka picture FujiHaruka  路  3Comments

lefam picture lefam  路  3Comments

chaos-git picture chaos-git  路  3Comments

ldarren picture ldarren  路  3Comments