Skip to content

Commit cdf6053

Browse files
committed
Ensure errors thrown in createGraphQLYoga are logged
1 parent 2827718 commit cdf6053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/graphql-server/src/createGraphQLYoga.ts

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export const createGraphQLYoga = ({
211211

212212
return { yoga, logger }
213213
} catch (e) {
214+
logger.error(e)
214215
if (onException) {
215216
onException()
216217
}

0 commit comments

Comments
 (0)