* Simplified logging helper.

* Fixed think-o in how to close the CollectionWrapper inside a ThreadingCollectionWrapper.
This commit is contained in:
David Snopek
2013-07-18 02:17:36 +01:00
parent f891a939c3
commit 9207f3bce4
3 changed files with 30 additions and 16 deletions

View File

@@ -478,9 +478,7 @@ class CardHandler(RestHandlerBase):
def make_app(global_conf, **local_conf):
# setup the logger
from AnkiServer.utils import setup_logging
logging_config_file = local_conf.get('logging.config_file')
if logging_config_file:
setup_logging(logging_config_file)
setup_logging(local_conf.get('logging.config_file'))
return RestApp(
data_root=local_conf.get('data_root', '.'),