running git lfs clone
parent
0c93cd90d6
commit
cf16f766ee
File diff suppressed because one or more lines are too long
|
|
@ -291,13 +291,7 @@ class AWS {
|
||||||
core.info(`Task status is ${await getTaskStatus()}`);
|
core.info(`Task status is ${await getTaskStatus()}`);
|
||||||
|
|
||||||
const logBaseUrl = `https://console.aws.amazon.com/cloudwatch/home?region=${SDK.config.region}#logsV2:log-groups/${taskDefStackName}`;
|
const logBaseUrl = `https://console.aws.amazon.com/cloudwatch/home?region=${SDK.config.region}#logsV2:log-groups/${taskDefStackName}`;
|
||||||
const encode = text => encodeURIComponent(text).replace(/%/g, '$');
|
core.info(`You can also watch the logs at AWS Cloud Watch: ${logBaseUrl}`);
|
||||||
const awsEncode = text => encodeURIComponent(encodeURIComponent(text)).replace(/%/g, '$');
|
|
||||||
const encodeTimestamp = timestamp => encode('?start=') + awsEncode(new Date(timestamp).toJSON());
|
|
||||||
const awsLambdaLogBaseUrl = `${logBaseUrl}/${awsEncode('/aws/lambda/')}`;
|
|
||||||
const logStreamUrl = (logGroup, logStream, timestamp) =>
|
|
||||||
`${awsLambdaLogBaseUrl}${logGroup}/log-events/${awsEncode(logStream)}${timestamp ? encodeTimestamp(timestamp) : ''}`;
|
|
||||||
core.info(`You can also watch the logs at AWS Cloud Watch: ${logStreamUrl}`);
|
|
||||||
|
|
||||||
let readingLogs = true;
|
let readingLogs = true;
|
||||||
while (readingLogs) {
|
while (readingLogs) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue