Skip to content

Commit f4dc980

Browse files
committed
dont log unnecessary stuff
1 parent 0f0781d commit f4dc980

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/server-start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ const server = createServer(async (req, res) => {
177177

178178
// Log slow SSR requests
179179
if (ssrTime > 2000) {
180-
console.log(`🔥 VERY SLOW SSR: ${req.method} ${pathname} took ${ssrTime}ms [${requestId}]`);
180+
console.debug(`🔥 VERY SLOW SSR: ${req.method} ${pathname} took ${ssrTime}ms [${requestId}]`);
181181
} else if (ssrTime > 1000) {
182-
console.log(`⚠️ SLOW SSR: ${req.method} ${pathname} took ${ssrTime}ms [${requestId}]`);
182+
console.debug(`⚠️ SLOW SSR: ${req.method} ${pathname} took ${ssrTime}ms [${requestId}]`);
183183
}
184184

185185
// Convert Web Standard Response to Node.js response

ui/src/authkit/serverFunctions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ export const getWidgetsAuthToken = createServerFn({method: 'GET'})
137137
// Check cache first
138138
const cached = serverCache.getWidgetToken(userId, organizationId);
139139
if (cached) {
140-
console.log(`✅ Widget token cache hit for ${userId}:${organizationId}`);
140+
console.debug(`✅ Widget token cache hit for ${userId}:${organizationId}`);
141141
return cached;
142142
}
143143

144144
// Cache miss - generate new token
145-
console.log(`❌ Widget token cache miss, generating new token for ${userId}:${organizationId}`);
145+
console.debug(`❌ Widget token cache miss, generating new token for ${userId}:${organizationId}`);
146146
const token = await getWorkOS().widgets.getToken({
147147
userId: userId,
148148
organizationId: organizationId,

0 commit comments

Comments
 (0)