Skip to content

Commit 06c8019

Browse files
author
Istemi Ekin Akkus
committed
remove timestamp field in the workflow execution window in the GUI; parse log file correctly in the GUI; fixes #98
1 parent ac3ea95 commit 06c8019

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

GUI/app/pages/workflows/ExecutionCtrl.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,17 @@
119119
if (response.data.data.workflow.log != prevLogEntry) {
120120

121121
var logStr = atob(response.data.data.workflow.log);
122+
var log_lines = logStr.split('\n');
122123

123-
logStr = logStr.replace(/\[1/g, "#@![1");
124+
log_lines.sort();
124125

125-
var logArr = logStr.split('#@!');
126-
logArr.sort();
126+
for (var i = 0; i < log_lines.length; i++)
127+
{
128+
var line = log_lines[i];
129+
log_lines[i] = line.substring(line.indexOf(" ") + 1);
130+
}
127131

128-
$scope.aceLogSession.setValue(logArr.join(""));
132+
$scope.aceLogSession.setValue(log_lines.join("\n"));
129133

130134
var n = $scope.aceLog.getValue().split("\n").length;
131135
$scope.aceLog.gotoLine(n, 0, true);

0 commit comments

Comments
 (0)