Skip to content

Commit

Permalink
2375 add logging of templates being used
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 24, 2012
1 parent 385a64a commit 57342a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/lib/base.py
Expand Up @@ -38,6 +38,8 @@

ALLOWED_FIELDSET_PARAMS = ['package_form', 'restrict']

log = logging.getLogger(__name__)

def abort(status_code=None, detail='', headers=None, comment=None):
if detail and status_code!=503:
h.flash_error(detail)
Expand Down Expand Up @@ -95,6 +97,7 @@ def render_template():
del globs['url']

template_path, template_type = lib.render.template_info(template_name)
log.info('rendering %s [%s]' % (template_path, template_type))

# Jinja2 templates
if template_type == 'jinja2':
Expand Down

0 comments on commit 57342a5

Please sign in to comment.