Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(handlers.js): address quoting, set sane default (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojongerius committed Aug 16, 2021
1 parent 2f13dd0 commit 49b7dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const WRAPPER_CODE = ({
}
if (!process.env.EPSAGON_PAYLOADS_TO_IGNORE) {
process.env.EPSAGON_PAYLOADS_TO_IGNORE = "${payloadsToIgnore || ''}";
process.env.EPSAGON_PAYLOADS_TO_IGNORE = '${payloadsToIgnore}';
}
epsagon.init({
Expand Down Expand Up @@ -111,7 +111,7 @@ export function generateWrapperCode(
func.relativePath
);
const labelsFormatted = typeof labels === 'object' ? JSON.stringify(labels) : labels;
const ignoredKeysFormatted = typeof payloadsToIgnore === 'object' ? JSON.stringify(payloadsToIgnore) : payloadsToIgnore;
const ignoredKeysFormatted = typeof payloadsToIgnore === 'object' ? JSON.stringify(payloadsToIgnore) : '';

return WRAPPER_CODE({
relativePath,
Expand Down

0 comments on commit 49b7dcc

Please sign in to comment.