#377 Dogtag 10: Missing Python logging.shutdown() call . . .
Closed: wontfix Opened by mharmsen.

pkispawn/pkirespawn/pkidestroy all utilize the Python system logging mechanism documented at http://docs.python.org/library/logging.html as implemented in the pkilogging.py scriptlet.

It was discovered that no call is being made to "logging.shutdown()" to safely shutdown this mechanism, and as one should check that logging is enabled before attempting to shut it down, a method to do this should be added to the pkilogging.py scriptlet.


[06/04/2014] - Moving to Milestone 10.2.3 due to schedule restrictions.

proposed Milestone: 10.2.3 - Per Dogtag 10.2.3 meeting of 09/25/2014

Per Dogtag 10.2.X meeting of 01/14/2015: Milestone 10.2 Backlog

Per 10.2.3 TRIAGE meeting of 02/26/2015: 10.3

NOTE: Moved from 10.2 Backlog since it was not a documentation/man page issue.

The scripts don't have to call the logging.shutdown() function explicitly. The logging module registers the function as atexit hook. It's automatically called when the script exits. I have been using the logging module in multiple applications for years w/o calling logging.shutdown(). So far I haven't seen any issues like broken log files.

It's also safe to call the function multiple times, too. It's even safe to call it when the logging framework hasn't been initialized.

Metadata Update from @mharmsen:
- Issue set to the milestone: N/A

Metadata Update from @mharmsen:
- Custom field proposedmilestone adjusted to ''
- Custom field proposedpriority adjusted to ''
- Custom field reviewer adjusted to ''
- Custom field version adjusted to ''
- Issue close_status updated to: wontfix (was: Invalid)

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/948

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata