Skip to content

Commit

Permalink
chore: verify log env through console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSudip committed Aug 1, 2024
1 parent b64209e commit e35119a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/logger.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const logDestIds = (process.env.LOG_DEST_IDS ?? '').split(',')?.map?.((s) => s?.trim?.()); // should be comma separated
const logWspIds = (process.env.LOG_WSP_IDS ?? '').split(',')?.map?.((s) => s?.trim?.()); // should be comma separated

console.log('logDestIds', logDestIds);
console.log('logWspIds', logWspIds);

const isMetadataMatching = (m) => {
const isDestIdConfigured = logDestIds?.find?.((envDId) => envDId && envDId === m?.destinationId);
const isWspIdConfigured = logWspIds?.find?.(
Expand Down

0 comments on commit e35119a

Please sign in to comment.