Skip to content

Commit

Permalink
plain logging on defaultFetchHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Nov 13, 2023
1 parent cca9f91 commit b7ed395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push-pds-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- multi-pds-auth
- multi-pds-auth-debug
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
Expand Down
5 changes: 5 additions & 0 deletions packages/xrpc/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ export async function defaultFetchHandler(
body: httpResponseBodyParse(res.headers.get('content-type'), resBody),
}
} catch (e) {
console.error(
'defaultFetchHandler',
{ method: httpMethod, uri: httpUri },
e,
)
throw new XRPCError(ResponseType.Unknown, String(e))
}
}
Expand Down

0 comments on commit b7ed395

Please sign in to comment.