-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
clusterIssues and PRs related to the cluster subsystem.Issues and PRs related to the cluster subsystem.
Description
I'm using for logging for each forked worker the property worker.id - this works fine for node 0.10,0.12 and io.js up to 1.5 - in 1.6.2, only when I use the new -r / preload option to preload the logging module I get following error:
postfix = '.worker-' + cluster.worker.id
^
TypeError: Cannot read property 'id' of undefined
How can this happen?
The related source code:
if (!cluster.isMaster)
postfix = '.worker-' + cluster.worker.id
https://nodejs.org/api/cluster.html#cluster_cluster_worker
https://nodejs.org/api/cluster.html#cluster_worker_id
Metadata
Metadata
Assignees
Labels
clusterIssues and PRs related to the cluster subsystem.Issues and PRs related to the cluster subsystem.