summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-02-08 15:42:30 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-02-23 20:40:49 +0000
commit43a2ed12e55e23b64419cc3493ca75d180e47a16 (patch)
tree3b00832f27ac71e07c1fad324da9c69b488c6344
parente345cac548dfc846d0630d3cb43ad60d34e1d662 (diff)
downloadphosphor-webui-43a2ed12e55e23b64419cc3493ca75d180e47a16.tar.gz
phosphor-webui-43a2ed12e55e23b64419cc3493ca75d180e47a16.zip
Display the "type" of event log
The GUI before displayed the "Severity" of the event log in the name field. It now displays the type. Type is from the "Message" field in the event log. An example of the type is: "xyz.openbmc_project.Software.Version.Error.ManifestFileFailure". This is much more useful than the "Severity" ( e.g. "xyz.openbmc_project.Logging.Entry.Level.Error"). Severity is still displayed in the event log, above the type. Resolves openbmc/openbmc#2875 Change-Id: I10fdf90f6498f49b11a64e2c1e556b9a1c95f7b4 Tested: Running GUI locally Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--app/common/directives/log-event.html2
-rw-r--r--app/common/services/api-utils.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/common/directives/log-event.html b/app/common/directives/log-event.html
index 970598d..0077a6f 100644
--- a/app/common/directives/log-event.html
+++ b/app/common/directives/log-event.html
@@ -26,7 +26,7 @@
<p class="inline event__severity" ng-class="{'low-priority': event.priority == 'Low', 'medium-priority': event.priority == 'Medium', 'high-priority': event.priority == 'High'}">{{event.severity_code}}</p>
<p class="inline event__timestamp">{{event.Timestamp| date:'MM/dd/yyyy HH:mm:ss '+tmz: tmz}}</p></div>
<div>
- <p class="inline event__description">{{event.Severity}}</p>
+ <p class="inline event__description">{{event.type}}</p>
</div>
<div class="column small-1 large-1">
<button class="accord-trigger" ng-class="{'active': event.meta}"
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 1b26b93..9b619bd 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -445,6 +445,7 @@ window.angular && (function (angular) {
severity_flags: severityFlags,
health_flags: healthFlags,
additional_data: content.data[key].AdditionalData.join("\n"),
+ type: content.data[key].Message,
selected: false,
search_text: ("#" + content.data[key].Id + " " + severityCode + " " + content.data[key].Severity + " " + content.data[key].AdditionalData.join(" ")).toLowerCase(),
meta: false,
OpenPOWER on IntegriCloud