There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(server): remove too verbose logs (#5555)
liuyibf88b6edaa7b
diff --git a/packages/backend/server/src/fundamentals/cache/interceptor.ts b/packages/backend/server/src/fundamentals/cache/interceptor.tsindex 93cd388273..b865264b55 100644--- a/packages/backend/server/src/fundamentals/cache/interceptor.ts+++ b/packages/backend/server/src/fundamentals/cache/interceptor.ts@@ -40,9 +40,9 @@ export class CacheInterceptor implements NestInterceptor {);if (preventKey) {- this.logger.debug(`prevent cache: ${JSON.stringify(preventKey)}`);const key = await this.getCacheKey(ctx, preventKey);if (key) {+ this.logger.debug(`cache ${key} staled`);await this.cache.delete(key);}@@ -60,12 +60,12 @@ export class CacheInterceptor implements NestInterceptor {const cachedData = await this.cache.get(cacheKey);if (cachedData) {- this.logger.debug('cache hit', cacheKey, cachedData);+ this.logger.debug(`cache ${cacheKey} hit`);return of(cachedData);} else {+ this.logger.debug(`cache ${cacheKey} miss`);return next.handle().pipe(mergeMap(async result => {- this.logger.debug('cache miss', cacheKey, result);await this.cache.set(cacheKey, result);return result;