Mercurial > piecrust2
changeset 279:980bbbd0705e
serve: Correctly show timing info even when not in debug mode.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 01 Mar 2015 21:38:24 -0800 |
parents | 34194ca0ab85 |
children | 8c0c53a315ae |
files | piecrust/serving.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/serving.py Sun Mar 01 18:01:07 2015 -0800 +++ b/piecrust/serving.py Sun Mar 01 21:38:24 2015 -0800 @@ -300,7 +300,7 @@ entry.used_source_names = set(render_ctx.used_source_names) # Profiling. - if app.debug: + if app.config.get('site/show_debug_info'): now_time = time.clock() timing_info = ('%8.1f ms' % ((now_time - app.env.start_time) * 1000.0))