File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -56578,9 +56578,6 @@ const main = async () => {
56578
56578
return;
56579
56579
}
56580
56580
56581
- // Get CWLogsClient
56582
- let CWLogClient = new CloudWatchLogsClient();
56583
-
56584
56581
// Only create logFilterStream if tailLogs is enabled, and we wait for the task to stop in the pipeline
56585
56582
if (tailLogs) {
56586
56583
core.debug(`Logging enabled. Getting logConfiguration from TaskDefinition.`)
@@ -56615,6 +56612,7 @@ const main = async () => {
56615
56612
56616
56613
// Start Live Tail
56617
56614
try {
56615
+ const CWLogClient = new CloudWatchLogsClient();
56618
56616
const response = await CWLogClient.send(new StartLiveTailCommand({
56619
56617
logGroupIdentifiers: [logGroupIdentifier],
56620
56618
logStreamNames: [logStreamName]
@@ -56647,7 +56645,6 @@ const main = async () => {
56647
56645
}
56648
56646
56649
56647
// Close LogStream and store output
56650
- CWLogClient.destroy();
56651
56648
core.setOutput('log-output', logOutput);
56652
56649
56653
56650
// Describe Task to get Exit Code and Exceptions
Original file line number Diff line number Diff line change @@ -130,9 +130,6 @@ const main = async () => {
130
130
return ;
131
131
}
132
132
133
- // Get CWLogsClient
134
- let CWLogClient = new CloudWatchLogsClient ( ) ;
135
-
136
133
// Only create logFilterStream if tailLogs is enabled, and we wait for the task to stop in the pipeline
137
134
if ( tailLogs ) {
138
135
core . debug ( `Logging enabled. Getting logConfiguration from TaskDefinition.` )
@@ -167,6 +164,7 @@ const main = async () => {
167
164
168
165
// Start Live Tail
169
166
try {
167
+ const CWLogClient = new CloudWatchLogsClient ( ) ;
170
168
const response = await CWLogClient . send ( new StartLiveTailCommand ( {
171
169
logGroupIdentifiers : [ logGroupIdentifier ] ,
172
170
logStreamNames : [ logStreamName ]
@@ -199,7 +197,6 @@ const main = async () => {
199
197
}
200
198
201
199
// Close LogStream and store output
202
- CWLogClient . destroy ( ) ;
203
200
core . setOutput ( 'log-output' , logOutput ) ;
204
201
205
202
// Describe Task to get Exit Code and Exceptions
You can’t perform that action at this time.
0 commit comments