]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
When running methods for clients, send plain warnings to "real" logs
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 14 Nov 2012 19:50:46 +0000 (14:50 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 17 Mar 2013 01:47:52 +0000 (18:47 -0700)
commitc8b808c739637ec68f2d8181f73d93f880f55dd6
treee8f48f741a53951a362942f4bff56b81f925dd39
parentdf3155f9a3d9259ce64b27fb834450f99e85d8e2
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>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/perl/lib/OpenSRF/Application.pm