]> git.evergreen-ils.org Git - OpenSRF.git/commit
Enable client logtrace with environment vars
authorBill Erickson <berick@esilibrary.com>
Wed, 17 Oct 2012 18:31:02 +0000 (14:31 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 6 Feb 2013 20:09:45 +0000 (15:09 -0500)
commit7667d34b4913b57740695a912a69f4d520fbcb9f
tree591cb4b0fe68c2636d0f0af1f49d0afc231c3125
parentf086d4c0aaaa605139aa18658a62fa919294cdc8
Enable client logtrace with environment vars

Supports a new environment variable OSRF_LOG_CLIENT which, if true,
enables control and generation of the client log trace value.  This is
the same as setting <client>true</client> within the opensrf core
configuration file.

As a shortcut, if the MOD_PERL environment variable is set, assume
client=true.

This allows clients and non-clients to share an opensrf core
configuration file, when previously the only difference between the two
was the <client> setting.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
src/perl/lib/OpenSRF/Utils/Logger.pm