Add needed import for file or syslog logging.
ClosedPublic

Authored by ralph2 on Oct 13 2016, 4:34 PM.

Details

Summary

When you use stream logging, everything works.

But if you try and use file logging or syslog logging, things fail with an
AttributeError because logging.handlers was never imported. This fixes that.

Test Plan

I tried this out on a dev instance.

Diff Detail

Repository
rRSFE resultsdb_frontend
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ralph2 retitled this revision from to Add needed import for file or syslog logging..Oct 13 2016, 4:34 PM
ralph2 updated this object.
ralph2 edited the test plan for this revision. (Show Details)
ralph2 added reviewers: tflink, jskladan.
mkrizek accepted this revision.Oct 13 2016, 4:51 PM
mkrizek added a reviewer: mkrizek.
mkrizek added a subscriber: mkrizek.

Thanks, LGTM. We should probably check all our Flask apps for this since they're mostly based on the same code.

This revision is now accepted and ready to land.Oct 13 2016, 4:51 PM
Closed by commit rRSFEfea1e7ca9f69: Add needed import for file or syslog logging (authored by Ralph Bean <rbean@redhat.com>, committed by kparal). · Explain WhyOct 27 2016, 2:11 PM
This revision was automatically updated to reflect the committed changes.
kparal added a subscriber: kparal.Oct 27 2016, 2:12 PM

Thanks Ralph, pushed.