Skip to content

Commit

Permalink
update comment to match changes
Browse files Browse the repository at this point in the history
  • Loading branch information
metal-messiah committed Jun 24, 2024
1 parent 69857cc commit 0ee9e3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/wrap/wrap-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ export function wrapLogger(sharedEE, parent, loggerFn, context) {
const wrapFn = wfn(ee)

/**
* This section allows us to pass an over-writable context along through the event emitter
* so that subsequent calls to `newrelic.wrapLogger` `WILL NOT` re-wrap (emit twice), but `WILL` overwrite the
* context object which contains the custom attributes and log level
* This section contains the context that will be shared across all invoked calls of the wrapped function,
* which will be used to decorate the log data later at agg time
*/
const ctx = new EventContext(contextId)
ctx.level = context.level
Expand Down

0 comments on commit 0ee9e3b

Please sign in to comment.