try/catch aws logging errors

pull/218/head
Frostebite 2021-02-05 23:44:56 +00:00
parent 4bdad18f86
commit cbb6a9c8b8
2 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -117,6 +117,7 @@ class AWS {
aws: { region: SDK.config.region }, aws: { region: SDK.config.region },
}); });
try {
source.on('logs', AWS.onlog); source.on('logs', AWS.onlog);
source.on('error', (error) => { source.on('error', (error) => {
@ -124,6 +125,9 @@ class AWS {
}); });
source.open(); source.open();
} catch (error) {
core.error(error);
}
await ECS.waitFor('tasksStopped', { await ECS.waitFor('tasksStopped', {
cluster: clusterName, cluster: clusterName,