Skip to content

Commit 1066f86

Browse files
fix: missing router error logs (#34)
1 parent dd4fcf1 commit 1066f86

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/stale-hounds-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/service-core': patch
3+
---
4+
5+
Fixed missing route error logs

packages/service-core/src/routes/route-register.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export function registerFastifyRoutes(
6363
}
6464
} catch (ex) {
6565
const journeyError = errors.JourneyError.isJourneyError(ex) ? ex : new errors.InternalServerError(ex);
66+
logger.error(`Request failed`, journeyError);
6667

6768
response = new router.RouterResponse({
6869
status: journeyError.errorData.status || 500,

0 commit comments

Comments
 (0)