diff --git a/packages/server-context/src/api-request.ts b/packages/server-context/src/api-request.ts index 1c500cd7..17298545 100644 --- a/packages/server-context/src/api-request.ts +++ b/packages/server-context/src/api-request.ts @@ -44,7 +44,7 @@ export abstract class AlwatrApiRequestBase< const responseJson = this._responseJson!; if (responseJson.ok !== true) { if (typeof responseJson.errorCode === 'string') { - this._logger.accident('_$fetch', responseJson.errorCode, 'fetch response not ok', {responseJson}); + this._logger.accident('_$fetch', responseJson.errorCode, {responseJson}); throw new Error(responseJson.errorCode); } else { diff --git a/packages/server-context/src/server-context.ts b/packages/server-context/src/server-context.ts index 518795d2..bdead426 100644 --- a/packages/server-context/src/server-context.ts +++ b/packages/server-context/src/server-context.ts @@ -79,7 +79,7 @@ export abstract class AlwatrServerContextBase< protected _$updateContextAction(): void { if (this._responseJson === undefined) { - this._logger.accident('_$updateContextAction', 'no_response_json', 'this._responseJson undefined'); + this._logger.accident('_$updateContextAction', 'no_response_json'); return; } diff --git a/packages/server-context/src/server-request.ts b/packages/server-context/src/server-request.ts index b5e2ab83..630dfb9c 100644 --- a/packages/server-context/src/server-request.ts +++ b/packages/server-context/src/server-request.ts @@ -1,8 +1,11 @@ import {fetch} from '@alwatr/fetch'; import {ActionRecord, FiniteStateMachineBase, StateRecord} from '@alwatr/fsm'; +import {definePackage} from '@alwatr/logger'; import type {FetchOptions} from '@alwatr/fetch/type.js'; +definePackage('server-context', '2.x'); + export interface ServerRequestConfig extends Partial { name: string; }