mod_ruby : STDERR.reopen(STDOUT)
Hello,
How i can avoid to pollute the log of my web hosting with mod_ruby ?
I can put "STDERR.reopen(STDOUT)" at the top of all my web pages.
But i don't think it's a nice way, if I forget to put this line my web
hosting
will not be happy.
Anyway with this line all errors has trapped (and warning). I can't see
them in my .rhtml page
(but i have put STDOUT for reopen, so what's the problem ?)
Anybody know how i can see the error AND warn on my web page without
pollute the log of my web hosting ?
Regards,
oxman
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735