Skip to content

Commit

Permalink
debug: Enable logging from the S3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
akash1810 committed Dec 31, 2024
1 parent cde373c commit 467cc54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19716,10 +19716,10 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
error2(message);
}
exports2.setFailed = setFailed2;
function isDebug() {
function isDebug2() {
return process.env["RUNNER_DEBUG"] === "1";
}
exports2.isDebug = isDebug;
exports2.isDebug = isDebug2;
function debug3(message) {
(0, command_1.issueCommand)("debug", {}, message);
}
Expand Down Expand Up @@ -61731,7 +61731,9 @@ var main = async (options) => {
requestHandler: {
requestTimeout: 10 * 1e3
// 10 seconds
}
},
// Enable AWS SDK logging if the action is run in debug mode
...core4.isDebug() && { logger: { ...console } }
})
);
const keyPrefix = riffraffPrefix(mfest);
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export const main = async (options: Options): Promise<void> => {
requestHandler: {
requestTimeout: 10 * 1000, // 10 seconds
},

// Enable AWS SDK logging if the action is run in debug mode
...(core.isDebug() && { logger: { ...console } }),
}),
);
const keyPrefix = riffraffPrefix(mfest);
Expand Down

0 comments on commit 467cc54

Please sign in to comment.