Bugs: Browse | Submit New | Admin

[#26710] Log messages lost in production mode

Date:
2009-07-22 19:49
Priority:
3
Submitted By:
Steven Hartland (steveh)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Log messages lost in production mode

Detailed description
When running under passenger in production mode ( which uses buffered logging ) when an error occurs, but possibly in
normal operation, log messages are lost due to the call to exit! in the child process.

In addition not all errors are caught due to the use of rescue instead of rescue Exception.

Finally the initial "spawn> method" log entry is not displayed in stderr due to an invalid test on
RAILS_DEFAULT_LOGGER.

The attached patch all of these issues.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item