[ckan-changes] commit/ckan: dread: [config]: #1196 Fix markdown logging setup.

Bitbucket commits-noreply at bitbucket.org
Wed Jun 22 11:55:19 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/715212cd220c/
changeset:   715212cd220c
user:        dread
date:        2011-06-22 13:52:56
summary:     [config]: #1196 Fix markdown logging setup.
affected #:  1 file (243 bytes)

--- a/ckan/config/environment.py	Tue Jun 21 14:24:21 2011 +0100
+++ b/ckan/config/environment.py	Wed Jun 22 12:52:56 2011 +0100
@@ -1,6 +1,7 @@
 """Pylons environment configuration"""
 import os
 from urlparse import urlparse
+import logging
 
 from paste.deploy.converters import asbool
 
@@ -88,6 +89,11 @@
     def template_loaded(template):
         translator.setup(template)
 
+    # Markdown ignores the logger config, so to get rid of excessive
+    # markdown debug messages in the log, set it to the level of the
+    # root logger.
+    logging.getLogger("MARKDOWN").setLevel(logging.getLogger().level)
+
     # Create the Genshi TemplateLoader
     # config['pylons.app_globals'].genshi_loader = TemplateLoader(
     #    paths['templates'], auto_reload=True)

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list