When running methods for clients, send plain warnings to "real" logs collab/senator/warnings-to-regular-logs
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 14 Nov 2012 19:50:46 +0000 (14:50 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 14 Nov 2012 20:01:29 +0000 (15:01 -0500)
commit4c6adf05f1d6feafad478ddcfe140ec16a755014
treeeeea7e875cba50550c2e87f79266c4cc90d042a7
parent26a3004bbadb7384fee0cd2ca923a9fb63710893
When running methods for clients, send plain warnings to "real" logs

Code inside an OpenSRF application method may use Perl libraries that warn
and carp like most Perl code is wont to do.  Instead of letting
those message go to STDERR where they can be easily missed (and take up
lots of disk space on application boxes), why not catch them and
redirect them to our "real" logs using OpenSRF::Utils::Logger ?

Deployment of this change would probably have the side effect of bringing
to light bugs in applications (Evergreen) that will suddenly seem very
noisy.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
src/perl/lib/OpenSRF/Application.pm