logging timestamp fix
parent
3fc2dd99ab
commit
1c232c49f5
|
|
@ -720,17 +720,15 @@ class AWSBuildRunner {
|
|||
const json = JSON.parse(zlib.gunzipSync(Buffer.from(records.Records[index].Data, 'base64')).toString('utf8'));
|
||||
if (json.messageType === 'DATA_MESSAGE') {
|
||||
for (let logEventsIndex = 0; logEventsIndex < json.logEvents.length; logEventsIndex++) {
|
||||
const message = json.logEvents[logEventsIndex].message;
|
||||
if (json.logEvents[logEventsIndex].message.includes(taskDef.logid)) {
|
||||
cloud_runner_logger_1.default.log('End of cloud runner job logs');
|
||||
readingLogs = false;
|
||||
}
|
||||
else {
|
||||
const message = json.logEvents[logEventsIndex].message;
|
||||
if (message.includes('Rebuilding Library because the asset database could not be found!')) {
|
||||
core.warning('LIBRARY NOT FOUND!');
|
||||
}
|
||||
cloud_runner_logger_1.default.log(message);
|
||||
else if (message.includes('Rebuilding Library because the asset database could not be found!')) {
|
||||
core.warning('LIBRARY NOT FOUND!');
|
||||
}
|
||||
cloud_runner_logger_1.default.log(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -168,16 +168,14 @@ class AWSBuildRunner {
|
|||
);
|
||||
if (json.messageType === 'DATA_MESSAGE') {
|
||||
for (let logEventsIndex = 0; logEventsIndex < json.logEvents.length; logEventsIndex++) {
|
||||
const message = json.logEvents[logEventsIndex].message;
|
||||
if (json.logEvents[logEventsIndex].message.includes(taskDef.logid)) {
|
||||
CloudRunnerLogger.log('End of cloud runner job logs');
|
||||
readingLogs = false;
|
||||
} else {
|
||||
const message = json.logEvents[logEventsIndex].message;
|
||||
if (message.includes('Rebuilding Library because the asset database could not be found!')) {
|
||||
core.warning('LIBRARY NOT FOUND!');
|
||||
}
|
||||
CloudRunnerLogger.log(message);
|
||||
} else if (message.includes('Rebuilding Library because the asset database could not be found!')) {
|
||||
core.warning('LIBRARY NOT FOUND!');
|
||||
}
|
||||
CloudRunnerLogger.log(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue