Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: optimize XHR impl log (#4672)
Wenzhao Huec6542474761
diff --git a/packages/engine-formula/src/basics/cache-lru.ts b/packages/engine-formula/src/basics/cache-lru.tsindex a284bd2cc7..c86f461d0c 100644--- a/packages/engine-formula/src/basics/cache-lru.ts+++ b/packages/engine-formula/src/basics/cache-lru.ts@@ -16,8 +16,6 @@import { hashAlgorithm, LRUMap } from '@univerjs/core';-// export const CACHE_FORMULA_AST = new LRUMap<string, AstRootNode>(100000);-export class FormulaAstLRU<T> {private _cache: LRUMap<string, T>;diff --git a/packages/network/src/services/http/implementations/xhr.ts b/packages/network/src/services/http/implementations/xhr.tsindex b6367d5c17..73b18eb858 100644--- a/packages/network/src/services/http/implementations/xhr.ts+++ b/packages/network/src/services/http/implementations/xhr.ts@@ -17,11 +17,12 @@/* eslint-disable max-lines-per-function *//* eslint-disable ts/no-explicit-any */+import type { Nullable } from '@univerjs/core';import type { Observer } from 'rxjs';import type { HTTPRequest } from '../request';import type { HTTPEvent } from '../response';import type { IHTTPImplementation } from './implementation';-import { ILogService, type Nullable } from '@univerjs/core';+import { ILogService } from '@univerjs/core';import { Observable } from 'rxjs';import { HTTPHeaders } from '../headers';import { ErrorStatusCodeLowerBound, HTTPStatusCode, SuccessStatusCodeLowerBound } from '../http';@@ -139,7 +140,7 @@ export class XHRHTTPImplementation implements IHTTPImplementation {const body = request.getBody();xhr.send(body);- this._logService.debug(`[XHRHTTPImplementation]: sending request to url ${urlWithParams} with params ${fetchParams}`);+ this._logService.debug('[XHRHTTPImplementation]', `sending request to url ${urlWithParams} with params ${fetchParams}`);// Abort the request if the subscription is disposed before the request completes.return () => {