Isso é parcialmente resolvido sobrescrevendo warn
dos seus scripts. STDERR
ainda vai para o log de erros principal do Apache.
- First, we need to use mod_perl's logging function, instead of CORE::warn
Either replace warn with Apache2::ServerRec::warn:
use Apache2::Log (); Apache2::ServerRec::warn("the code is smoking");
or import it into your code:
use Apache2::ServerRec qw(warn); # override warn locally warn "the code is smoking";