Skip to content

Commit

Permalink
more logging for transport observer
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Apr 18, 2024
1 parent 12006ec commit d578faf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/account-kit/src/transportObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export function transportObserver<TTransport extends Transport>(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,
Expand Down

0 comments on commit d578faf

Please sign in to comment.