hamayoun has asked for the wisdom of the Perl Monks concerning the following question:

Hi folks I've been using Perl and Apache for years, and have come across something bizzare. We have a system running with Apache 2 and Perl 5.9. We are using CGI::Application framework. Upto a few days ago, all STDERR print statements from the app were being written to the Apache error log. Since then, Perl warnings are written to the log but no STDERR print statements. As far as we can tell, nothing has changed. At the same time, some code in the app which was working before is now crashing. But nothing, other than warnings, is being written to the error log, so we can't work out why it's crashing. I don't think it's a coincidence that these two things have started happening at the same time. We did a reboot on the server, but that stil did not solve the problem. Like I said, I've been doing this stuff for years, but now I'm truly stuck, and I humbly ask for your help. Thx, Hamayoun

Replies are listed 'Best First'.
Re: STDERR not being put in error log
by chromatic (Archbishop) on Aug 23, 2012 at 04:51 UTC

    The error is probably in the "some code in the app which was working before". It's difficult to be more specific without seeing code.

Re: STDERR not being put in error log
by cheekuperl (Monk) on Aug 23, 2012 at 04:56 UTC
    Try running a standalone program, not related to your app, that prints to STDERR. Check if the logs are collecting these messages.
Re: STDERR not being put in error log
by Anonymous Monk on Aug 23, 2012 at 06:25 UTC