From d578fafc7cc1c61a511629b61941a9c4891eab67 Mon Sep 17 00:00:00 2001 From: alvrs Date: Thu, 18 Apr 2024 17:37:44 +0100 Subject: [PATCH] more logging for transport observer --- packages/account-kit/src/transportObserver.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/account-kit/src/transportObserver.ts b/packages/account-kit/src/transportObserver.ts index cf686b32a1..3c8d7715ef 100644 --- a/packages/account-kit/src/transportObserver.ts +++ b/packages/account-kit/src/transportObserver.ts @@ -6,7 +6,9 @@ export function transportObserver(name: string, tr const result = transport(opts); const request: typeof result.request = async (req) => { debug("request", name, req); - return result.request(req); + const response = await result.request(req); + debug("response", name, response); + return response as never; }; return { ...result,