Lp 1933984: Expand Clark Kent's Use of the Logger user/dyrcona/lp1933984-teach-clark-about-syslog
authorJason Stephenson <jason@sigio.com>
Fri, 2 Jul 2021 17:52:31 +0000 (13:52 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 3 Jul 2021 22:52:20 +0000 (18:52 -0400)
commitabae540d0ebdce06a60d2a319a6acab1f7352d2d
treea8197b6e59ea8c63a91f88f5517d3c58daf23d58
parent0b5d5f44b119b41d2d0d32370c3c1b8ed38e3659
Lp 1933984: Expand Clark Kent's Use of the Logger

When the reporter is run in daemon mode, its messages appear on the
terminal where it is started.  They are, therefore, lost when Clark is
started in daemon mode and the user logs out.

This commit modifies the reporter to send the majority of its messages
to the OpenSRF logger utility so that these messages end up in the
Evergreen logs and do not get sent to the terminal.  Messages related
to a failure to start the reporter are still sent to the console in
the assumption that it is being started on the command line.

There is a companion commit in OpenSRF to improve the daemonize
function used by clark-kent.pl.  That commit basically requires this
one be applied as well.  Messages from the reporter will disappear
once the OpenSRF commit is applied until this one is also applied to
Evergreen.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/reporter/clark-kent.pl