Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

INT-5867 Log fetch org public access prevention policy errors #561

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/steps/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function fetchStorageBuckets(
publicAccessPreventionPolicy =
await orgPolicyClient.fetchOrganizationPublicAccessPreventionPolicy();
} catch (err) {
logger.warn({ err }, 'Error fetching organization public access prevention policy', err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the last err necessary?

Suggested change
logger.warn({ err }, 'Error fetching organization public access prevention policy', err);
logger.warn({ err }, 'Error fetching organization public access prevention policy');

logger.publishEvent({
name: 'missing_permission',
description:
Expand Down