|
|
@ -163,13 +163,19 @@ function loadOperationsLog(update) {
|
|
|
|
function renderLogDetails(obj,data) {
|
|
|
|
function renderLogDetails(obj,data) {
|
|
|
|
var payload = JSON.parse(data);
|
|
|
|
var payload = JSON.parse(data);
|
|
|
|
var logStream = '<div class="log-data">';
|
|
|
|
var logStream = '<div class="log-data">';
|
|
|
|
|
|
|
|
var activityStatus = payload.activityStatus;
|
|
|
|
|
|
|
|
var responseMsg = null;
|
|
|
|
|
|
|
|
|
|
|
|
Object.entries(payload.activityStatus).forEach(
|
|
|
|
if (activityStatus['0'].status == "ERROR") {
|
|
|
|
|
|
|
|
responseMsg = activityStatus['0'].responses['0'].response;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object.entries(activityStatus).forEach(
|
|
|
|
([key, entry]) => {
|
|
|
|
([key, entry]) => {
|
|
|
|
logStream += '<div class="row log-entry">' +
|
|
|
|
logStream += '<div class="row log-entry">' +
|
|
|
|
'<div class="col-lg-8">' +
|
|
|
|
'<div class="col-lg-8">' +
|
|
|
|
'<div class="log-status"><i class="icon fw ' + getLogStatusIcon(entry.status) + ' "></i>' +
|
|
|
|
'<div class="log-status"><i class="icon fw ' + getLogStatusIcon(entry.status) + ' "></i>' +
|
|
|
|
'<span>' + entry.status + '</span></div>' +
|
|
|
|
'<span>' + ((responseMsg == null) ? entry.status : responseMsg) + '</span></div>' +
|
|
|
|
'</div>' +
|
|
|
|
'</div>' +
|
|
|
|
'<div class="col-lg-4">' +
|
|
|
|
'<div class="col-lg-4">' +
|
|
|
|
'<div class="log-time text-right"><span>' + entry.updatedTimestamp + '</span></div>' +
|
|
|
|
'<div class="log-time text-right"><span>' + entry.updatedTimestamp + '</span></div>' +
|
|
|
|