Mercurial > piecrust2
diff piecrust/data/builder.py @ 223:7decf00eee47
serve: Don't expose the debug info right away when running with `--debug`.
The `--debug` flag controls logging level and how errors are reported by the
server. Appending `?!debug` now is the only thing that shows the debug window.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 03 Feb 2015 18:50:58 -0800 |
parents | 1446dbc42d39 |
children | 879fe1457e48 |
line wrap: on
line diff
--- a/piecrust/data/builder.py Tue Feb 03 18:48:13 2015 -0800 +++ b/piecrust/data/builder.py Tue Feb 03 18:50:58 2015 -0800 @@ -59,7 +59,7 @@ # Do this at the end because we want all the data to be ready to be # displayed in the debugger window. - if (app.debug and app.config.get('site/enable_debug_info') and + if (app.config.get('site/show_debug_info') and not app.config.get('baker/is_baking')): pc_data._enableDebugInfo(page, data)