Skip to content

Docs: fix env variable name in logEventIfEnabled() docstring #3196

@hibanka

Description

@hibanka

Expected Behavior

During development I discovered that the logger.logEventIfEnabled() method has an incorrect environment variable in description and example.

Should be POWERTOOLS_LOGGER_LOG_EVENT instead of POWERTOOLS_LOG_EVENT according to the official documentation.

Image

Current Behavior

Not needed

Code snippet

Not needed

Steps to Reproduce

Not needed

Possible Solution

No response

Powertools for AWS Lambda (TypeScript) version

latest

AWS Lambda function runtime

20.x

Packaging format used

npm

Execution logs

No response

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationnot-a-bugNew and existing bug reports incorrectly submitted as bug

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions