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

Conversation

JakeFerrero
Copy link
Contributor

Add a warn statement if we receive an error when attempting to fetch organization public access prevention policies.

Add a warn statement if we receive an error when attempting to fetch
organization public access prevention policies.
@JakeFerrero JakeFerrero requested a review from a team as a code owner December 7, 2022 16:37
@@ -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');

ndowmon
ndowmon previously approved these changes Dec 7, 2022
@JakeFerrero JakeFerrero merged commit b7b3b68 into main Dec 7, 2022
@JakeFerrero JakeFerrero deleted the INT-5867-log-public-access-prevention-policy-errors branch December 7, 2022 16:49
@JakeFerrero JakeFerrero added patch Increment the patch version when merged release Create a release when this pr is merged labels Dec 7, 2022
@j1-internal-automation
Copy link
Collaborator

🚀 PR was released in v2.20.1 🚀

@j1-internal-automation j1-internal-automation added the released This issue/pull request has been released. label Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants