Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f444c45

Browse files
committedFeb 14, 2025
Logger currentBuild
1 parent 346bcfa commit f444c45

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed
 

‎packages/server/src/cache/page-cache-handler.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ export default class PageCacheHandler {
1818
const [key] = args;
1919

2020
const fromLocalCache = localCache.get(key);
21-
logger.info(`allKeys: ${JSON.stringify([...localCache.keys()])}`);
22-
logger.info(
23-
`PageCache: key ${key} from localCache: ${fromLocalCache ? 'found' : 'not found'}`
24-
);
21+
logger.info(`PageCache: content in localCache: ${JSON.stringify(fromLocalCache)}`);
2522
if (fromLocalCache) {
26-
logger.info(`PageCache: content in localCache: ${JSON.stringify(fromLocalCache)}`);
2723
return fromLocalCache;
2824
}
2925

@@ -35,9 +31,6 @@ export default class PageCacheHandler {
3531
return null;
3632
}
3733

38-
localCache.set(key, fromRedisCache);
39-
logger.info(`PageCache: content in redisCache: ${JSON.stringify(fromRedisCache)}`);
40-
4134
return fromRedisCache;
4235
}
4336

‎packages/server/src/server-setup/server-setup.ts

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export const serverSetup = async (expressApp: Express, nextApp: NextServer) => {
3838
logger.error('Failed to fetch decorator version id!');
3939
}
4040

41+
logger.info(`decoratorVersionId: ${decoratorVersionId}`);
42+
logger.info(`currentBuildId: ${currentBuildId}`);
43+
4144
await redisCache.init(currentBuildId, decoratorVersionId);
4245

4346
addDecoratorUpdateListener(decoratorEnvProps, (versionId) => {

0 commit comments

Comments
 (0)
Please sign in to comment.