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,13 +117,17 @@ class AWS {
aws: { region: SDK.config.region },
});
source.on('logs', AWS.onlog);
try {
source.on('logs', AWS.onlog);
source.on('error', (error) => {
core.info('Error: ', error);
});
source.on('error', (error) => {
core.info('Error: ', error);
});
source.open();
source.open();
} catch (error) {
core.error(error);
}
await ECS.waitFor('tasksStopped', {
cluster: clusterName,