Skip to content

Commit 61dc49b

Browse files
authored
fix: add logging for get site info usage (#6156)
1 parent a71b6ce commit 61dc49b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/config/src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ export const resolveConfig = async function (opts) {
8181
featureFlags?.use_cached_site_info && siteInfo && accounts && addons && integrations,
8282
)
8383

84+
// I'm adding some debug logging to see if the logic is working as expected
85+
if (featureFlags?.use_cached_site_info_logging) {
86+
console.log('Checking site information', { useCachedSiteInfo, siteInfo, accounts, addons, integrations })
87+
}
88+
8489
if (!useCachedSiteInfo) {
8590
const updatedSiteInfo = await getSiteInfo({
8691
api,

0 commit comments

Comments
 (0)