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.
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.
I tried this out on a dev instance.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Thanks, LGTM. We should probably check all our Flask apps for this since they're mostly based on the same code.