From 7a8703ff672de7e09ac30761a029996ecfb078b0 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 15 Jun 2017 14:58:45 -0400 Subject: [PATCH] mgr/dashboard: split out audit log messages in UI Signed-off-by: John Spray --- src/pybind/mgr/dashboard/health.html | 44 +++++++++++++++++++++------- src/pybind/mgr/dashboard/module.py | 1 + 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/pybind/mgr/dashboard/health.html b/src/pybind/mgr/dashboard/health.html index 9e1b288895b5..e41a1e2da5e2 100644 --- a/src/pybind/mgr/dashboard/health.html +++ b/src/pybind/mgr/dashboard/health.html @@ -175,17 +175,39 @@
Cluster log
-
- - - { line.stamp } {line.priority}  - - - { line.message } -
+
+ +
+
+ + + { line.stamp } {line.priority}  + + + { line.message } +
+
+
+
+
+
+ + + { line.stamp } {line.priority}  + + + { line.message } +
+
+
- - + +
+
+
@@ -209,4 +231,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/pybind/mgr/dashboard/module.py b/src/pybind/mgr/dashboard/module.py index ac4cf23850f4..fedf19a6ea7e 100644 --- a/src/pybind/mgr/dashboard/module.py +++ b/src/pybind/mgr/dashboard/module.py @@ -663,6 +663,7 @@ class Module(MgrModule): MonStatus).data, "osd_map": osd_map, "clog": list(global_instance().log_buffer), + "audit_log": list(global_instance().audit_buffer), "pools": pools } -- 2.47.3