workers.error.log & workers.access.log not being created/written
jeffv opened this issue · comments
It appears that the event bind is failing circa /plugins/logger.js:135
I can confirm that the 'worker' event does indeed happen, and that it is bindable.
It appears that the bind is happening long after the 'worker' event has already been emitted, resulting in the function never being called.
This was tested on node v0.4.7, v0.4.12 and cluster v0.7.6 and v0.7.7.
This also can be shown using /examples/logger.js.
This appears to have been introduced in commit a3fb1ec in v0.7.0
My feeling is that the callback for creating the directory is delaying 'worker' event bind and causing the issue. We have a race condition between the server starting workers and the directory being created.
IMHO it's duplicate of #169.