-
Notifications
You must be signed in to change notification settings - Fork 156
fix(logger): POWERTOOLS_LOGGER_LOG_EVENT precedence is respected #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
6c70a0b
a034a60
0dd4568
076660c
00f5f73
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,8 @@ const injectLambdaContext = (target: Logger | Logger[], options?: HandlerOptions | |
if (options && options.clearState === true) { | ||
persistentAttributes.push({ ...logger.getPersistentLogAttributes() }); | ||
} | ||
if (options) { | ||
logger.logEventIfEnabled(request.event, options.logEvent); | ||
} | ||
const logEvent = options ? options.hasOwnProperty('logEvent') ? options.logEvent : undefined : undefined; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is Node 12 support actually needed? Active support for it ended over a year and a half ago and even extended security support for it ended 2 months ago. It's now officially past EOL. That said, I don't have insight into how many Node12 Lambdas are still running, so maybe supporting existing functions makes it worthwhile. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @bilalq, yes. For the time being we are committed to support Node.js 12.x since AWS Lambda still supports that runtime. So far, and aside from these minor changes in some lines, it hasn't been a blocker for us, so we still see value in allowing those customers who might have not migrated to newer and actively maintained runtimes to use the Powertools utilities.
dreamorosi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
logger.logEventIfEnabled(request.event, logEvent); | ||
}); | ||
}; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.