Skip to content

Commit

Permalink
ref(node): Don't call JSON.stringify on prisma client when logging
Browse files Browse the repository at this point in the history
`JSON.stringify` will throw when called on circular structures. This is an unnecessary risk in the prisma integration so we just log it plainly.

Ref: #8532
  • Loading branch information
lforst committed Aug 7, 2023
1 parent a0290b9 commit 4e4f2b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/tracing-internal/src/node/integrations/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ export class Prisma implements Integration {
});
} else {
__DEBUG_BUILD__ &&
logger.warn(
`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(options.client)}`,
);
logger.warn('Unsupported Prisma client provided to PrismaIntegration. Provided client:', options.client);
}
}

Expand Down

0 comments on commit 4e4f2b6

Please sign in to comment.