pull/524/head
Frostebite 2023-03-17 21:36:12 +00:00
parent 96ca464c8a
commit c4e311f643
3 changed files with 9 additions and 18 deletions

13
dist/index.js generated vendored
View File

@ -3760,15 +3760,10 @@ class KubernetesTaskRunner {
for (const element of splitLogs) {
didStreamAnyLogs = true;
const chunk = element;
try {
const dateString = `${chunk.toString().split(`Z `)[0]}Z`;
const newDate = Date.parse(dateString);
new Date(newDate).toISOString();
KubernetesTaskRunner.lastReceivedTimestamp = newDate;
}
catch {
/* */
}
const dateString = `${chunk.toString().split(`Z `)[0]}Z`;
const newDate = Date.parse(dateString);
new Date(newDate).toISOString();
KubernetesTaskRunner.lastReceivedTimestamp = newDate;
const message = chunk.split(`Z `)[1];
({ shouldReadLogs, shouldCleanup, output } = follow_log_stream_service_1.FollowLogStreamService.handleIteration(message, shouldReadLogs, shouldCleanup, output));
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -39,14 +39,10 @@ class KubernetesTaskRunner {
for (const element of splitLogs) {
didStreamAnyLogs = true;
const chunk = element;
try {
const dateString = `${chunk.toString().split(`Z `)[0]}Z`;
const newDate = Date.parse(dateString);
new Date(newDate).toISOString();
KubernetesTaskRunner.lastReceivedTimestamp = newDate;
} catch {
/* */
}
const dateString = `${chunk.toString().split(`Z `)[0]}Z`;
const newDate = Date.parse(dateString);
new Date(newDate).toISOString();
KubernetesTaskRunner.lastReceivedTimestamp = newDate;
const message = chunk.split(`Z `)[1];
({ shouldReadLogs, shouldCleanup, output } = FollowLogStreamService.handleIteration(