try/catch aws logging errors
parent
4bdad18f86
commit
cbb6a9c8b8
File diff suppressed because one or more lines are too long
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue