Thomas Waldmann committed 5c1a0f5 Draft

only do the MoinMoin.log.configured = True hack when running on GAE

Comments (0)

Files changed (2)

 import logging.config
 import logging.handlers  # needed for handlers defined there being configurable in logging.conf file
-# TODO: configured should be False of course, but this crashes GAE!
-# maybe this is related how we (ab)use and patch the logger as "logging".
-configured = True
+configured = False
 fallback_config = False
 gae = server_sw.startswith('Development') or server_sw.startswith('Google')
 if gae:
+    from MoinMoin import log
+    log.configured = True  # TODO: without this, it crashes/hangs on GAE
     # Hack: If there are no DatastoreFile instances assume we must create the index.
     from whoosh.filedb.gae import DatastoreFile
     create_index = DatastoreFile.all().get() is None
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.