Skip to content

Commit

Permalink
fix: handle undefined messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 11, 2021
1 parent 19c9554 commit 8762803
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/factories/createQueryLoggingInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export const createQueryLoggingInterceptor = (userConfiguration?: UserConfigurat
}

for (const notice of result.notices) {
if (!notice.message) {
continue;
}

if (isAutoExplainJsonMessage(notice.message)) {
context.log.info({
autoExplain: getAutoExplainPayload(notice.message),
Expand Down

0 comments on commit 8762803

Please sign in to comment.