Skip to content

Commit a6b51fc

Browse files
author
Kamil Sobol
authored
fix: sanitize branch linker logs (#843)
1 parent 6f10107 commit a6b51fc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/friendly-jokes-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/backend': patch
3+
---
4+
5+
Remove excessive logging from branch linker.

packages/backend/src/engine/branch-linker/lambda/branch_linker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export class AmplifyBranchLinkerCustomResourceEventHandler {
8787
}
8888

8989
const branch: Branch = await this.getBranch(appId, branchName);
90-
console.info(`Received branch details ${JSON.stringify(branch)}`);
90+
console.info(
91+
`Received details of branchName=${branchName} of appId=${appId}`
92+
);
9193
// Populate update command input with existing values, so we don't lose them.
9294
const updateBranchCommandInput: UpdateBranchCommandInput = {
9395
appId,
@@ -114,7 +116,7 @@ export class AmplifyBranchLinkerCustomResourceEventHandler {
114116
}
115117

116118
console.info(
117-
`Sending branch update ${JSON.stringify(updateBranchCommandInput)}`
119+
`Sending update of branchName=${branchName} of appId=${appId}`
118120
);
119121
await this.amplifyClient.send(
120122
new UpdateBranchCommand(updateBranchCommandInput)

0 commit comments

Comments
 (0)