GAE: logging configuration behaves strangely / hangs when activated
Original report by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
applies to gae branch, taken from Guido's patch
moin2 currently only works on GAE if "configured = True" is set in MoinMoin/log.py. If one sets this to False (like it usually should be), it somehow hangs.
Maybe this has something to do with the hackish way we use "logging":
In very old moins, we just imported logging (module) and then did logging.debug(...) and used logging.INFO/DEBUG/... constants.
Later, this was refactored to use logger objects (not the module) and we just bound the logger object to the name "logging", so the old way of calling it still worked. We also patched the misc. constants into the logger object, so they also kept working. See MoinMoin.log for details.
I am not sure what exactly is going wrong with that on GAE, but maybe we should refactor the way we use logging so it is less hackish. Refactoring should be done at some time with no unmerged stuff on parallel branches/repos, because this would likely require global changes which might cause lots of conflicts otherwise.
Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
https://stackoverflow.com/questions/13206295/logging-fileconfig-acting-weird-on-google-app-engine/22801324#22801324
Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).
http://hg.moinmo.in/moin/2.0/rev/5c1a0f5c35e3 makes this hack only when running on GAE, so we do not need a different log.py for GAE vs non-GAE.
this doesn't solve the fundamental problem, though.