Module: check_mk
Branch: master
Commit: 4686d1504cf2fbc946cb1da7d5c310d17b9a7c20
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4686d1504cf2fb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 28 14:23:03 2011 +0200
Make livestatus debug foldable
---
web/htdocs/views.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index ebae2c3..c5a5062 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1684,7 +1684,9 @@ def query_data(datasource, columns, add_columns, add_headers,
only_sites = [], l
if limit != None:
html.live.set_limit(limit + 1) # + 1: We need to know, if limit is exceeded
if config.debug and html.output_format == "html" and 'W' in
html.display_options:
+ html.begin_foldable_container("debug_lq", "x", True,
_("Livestatus Query:"), indent=False)
html.write("<div
class=message><tt>%s</tt></div>\n" %
(query.replace('\n', '<br>\n')))
+ html.end_foldable_container()
if only_sites:
html.live.set_only_sites(only_sites)