Please review the attached patch for:
* PKI TRAC Ticket #898 - Giant /var/log/pki-ca/debug
<
https://fedorahosted.org/pki/ticket/898>
It is basically a copy of the patch that was applied to Bugzilla Bug
#1055080 - Giant /var/log/pki-ca/debug
<
https://bugzilla.redhat.com/show_bug.cgi?id=1055080> except it
does*not* reset the CS.cfg 'debug.level=0' (log everything) to
'debug.level=10' (log information only) since Fedora platform's primary
usage is for development, and thus debug logs are used far more prevalently.
To test this patch:
* Build a default CA using the patched source
* Install the default CA using 'pkispawn'
* Examine the '/var/log/pki/pki-tomcat/ca/debug' file to reveal that
it contains much content (debug.level=0)
* Shutdown the CA
* Edit '/etc/pki/pki-tomcat/ca/CS.cfg' and change 'debug.level=0' (log
everything) to 'debug.level=10' (log information only)
* Empty the CA 'debug' log by typing 'cat /dev/null >
/var/log/pki/pki-tomcat/ca/debug'
* Restart the CA
* Examine the '/var/log/pki/pki-tomcat/ca/debug' file to reveal that
it contains minimal content (debug.level=10)