diff --git a/packages/backend/server/src/core/doc/history.ts b/packages/backend/server/src/core/doc/history.ts index c0b64d7857..0118280b61 100644 --- a/packages/backend/server/src/core/doc/history.ts +++ b/packages/backend/server/src/core/doc/history.ts @@ -102,7 +102,9 @@ export class DocHistoryManager { description: 'How many times the snapshot history created', }) .add(1); - this.logger.log(`History created for ${id} in workspace ${workspaceId}.`); + this.logger.debug( + `History created for ${id} in workspace ${workspaceId}.` + ); } } diff --git a/packages/backend/server/src/core/quota/storage.ts b/packages/backend/server/src/core/quota/storage.ts index 8ba20532bb..b15e7f8dc3 100644 --- a/packages/backend/server/src/core/quota/storage.ts +++ b/packages/backend/server/src/core/quota/storage.ts @@ -72,10 +72,12 @@ export class QuotaManagementService { const total = usedSize + recvSize; // only skip total storage check if workspace has unlimited feature if (total > quota && !unlimited) { - this.logger.log(`storage size limit exceeded: ${total} > ${quota}`); + this.logger.warn(`storage size limit exceeded: ${total} > ${quota}`); return true; } else if (recvSize > blobLimit) { - this.logger.log(`blob size limit exceeded: ${recvSize} > ${blobLimit}`); + this.logger.warn( + `blob size limit exceeded: ${recvSize} > ${blobLimit}` + ); return true; } else { return false; diff --git a/packages/backend/server/src/fundamentals/cache/interceptor.ts b/packages/backend/server/src/fundamentals/cache/interceptor.ts index c9d326aaf6..e22f5ae715 100644 --- a/packages/backend/server/src/fundamentals/cache/interceptor.ts +++ b/packages/backend/server/src/fundamentals/cache/interceptor.ts @@ -42,7 +42,7 @@ export class CacheInterceptor implements NestInterceptor { if (preventKey) { const key = await this.getCacheKey(ctx, preventKey); if (key) { - this.logger.debug(`cache ${key} staled`); + this.logger.verbose(`cache ${key} staled`); await this.cache.delete(key); } @@ -60,10 +60,10 @@ export class CacheInterceptor implements NestInterceptor { const cachedData = await this.cache.get(cacheKey); if (cachedData) { - this.logger.debug(`cache ${cacheKey} hit`); + this.logger.verbose(`cache ${cacheKey} hit`); return of(cachedData); } else { - this.logger.debug(`cache ${cacheKey} miss`); + this.logger.verbose(`cache ${cacheKey} miss`); return next.handle().pipe( mergeMap(async result => { await this.cache.set(cacheKey, result); diff --git a/packages/backend/server/src/plugins/copilot/providers/index.ts b/packages/backend/server/src/plugins/copilot/providers/index.ts index 99e8d43cd4..addc873e3e 100644 --- a/packages/backend/server/src/plugins/copilot/providers/index.ts +++ b/packages/backend/server/src/plugins/copilot/providers/index.ts @@ -52,7 +52,7 @@ export function registerCopilotProvider< ); } const instance = new provider(providerConfig as C); - logger.log( + logger.debug( `Copilot provider ${type} registered, capabilities: ${provider.capabilities.join(', ')}` ); diff --git a/packages/backend/server/src/plugins/redis/mutex.ts b/packages/backend/server/src/plugins/redis/mutex.ts index 496fdecf0b..7b6edfa6b2 100644 --- a/packages/backend/server/src/plugins/redis/mutex.ts +++ b/packages/backend/server/src/plugins/redis/mutex.ts @@ -42,7 +42,7 @@ export class RedisMutexLocker implements ILocker { async lock(owner: string, key: string): Promise { const lockKey = `MutexLock:${key}`; - this.logger.debug(`Client ${owner} is trying to lock resource ${key}`); + this.logger.verbose(`Client ${owner} is trying to lock resource ${key}`); const success = await this.redis.sendCommand( new Command('EVAL', [lockScript, '1', lockKey, owner])