Skip to content

Commit a246bf0

Browse files
committed
fix: logging flags
1 parent dd5fdfa commit a246bf0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/rpc/src/utils/billing.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ async function _getOrganizationOwnerId(
1919
return orgMember?.userId || null;
2020
} catch (error) {
2121
logger.error(
22-
"[Billing Util] Error with _getOrganizationOwnerId:",
23-
error instanceof Error ? error.message : String(error)
22+
{
23+
error,
24+
},
25+
"[Billing Util] Error with _getOrganizationOwnerId"
2426
);
2527
return null;
2628
}

packages/rpc/src/utils/cache-invalidation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ export const invalidateWebsiteCaches = async (
8585
]);
8686
} catch (error) {
8787
logger.error(
88-
"Failed to invalidate caches",
89-
error instanceof Error ? error.message : String(error),
9088
{
89+
error,
9190
websiteId,
9291
userId,
93-
}
92+
},
93+
"Failed to invalidate caches"
9494
);
9595
throw error;
9696
}

0 commit comments

Comments
 (0)