Skip to content

Commit 0f5cb6b

Browse files
committed
update logs
1 parent cdb37b9 commit 0f5cb6b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/common/atlas/accessListUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ export async function ensureCurrentIpInAccessList(apiClient: ApiClient, projectI
3131
});
3232
logger.debug(
3333
LogId.atlasIpAccessListAdded,
34-
"atlas-connect-cluster",
34+
"accessListUtils",
3535
`IP access list created: ${JSON.stringify(entry)}`
3636
);
3737
} catch (err) {
3838
if (err instanceof ApiClientError && err.response?.status === 409) {
3939
// 409 Conflict: entry already exists, ignore
4040
return;
4141
}
42-
throw err;
42+
logger.debug(LogId.atlasIpAccessListAddFailure, "accessListUtils", `Error adding IP access list: ${err}`);
4343
}
4444
}

src/common/logger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const LogId = {
2121
atlasConnectSucceeded: mongoLogId(1_001_006),
2222
atlasApiRevokeFailure: mongoLogId(1_001_007),
2323
atlasIpAccessListAdded: mongoLogId(1_001_008),
24+
atlasIpAccessListAddFailure: mongoLogId(1_001_009),
2425

2526
telemetryDisabled: mongoLogId(1_002_001),
2627
telemetryEmitFailure: mongoLogId(1_002_002),

0 commit comments

Comments
 (0)