comparison 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
comparison
equal deleted inserted replaced
222:1446dbc42d39 223:7decf00eee47
57 site_data = build_site_data(page) 57 site_data = build_site_data(page)
58 merge_dicts(data, site_data) 58 merge_dicts(data, site_data)
59 59
60 # Do this at the end because we want all the data to be ready to be 60 # Do this at the end because we want all the data to be ready to be
61 # displayed in the debugger window. 61 # displayed in the debugger window.
62 if (app.debug and app.config.get('site/enable_debug_info') and 62 if (app.config.get('site/show_debug_info') and
63 not app.config.get('baker/is_baking')): 63 not app.config.get('baker/is_baking')):
64 pc_data._enableDebugInfo(page, data) 64 pc_data._enableDebugInfo(page, data)
65 65
66 return data 66 return data
67 67