Skip to content

Commit

Permalink
docs: fix env variable name in logEventIfEnabled() docstring (#3197)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpeno authored Oct 14, 2024
1 parent 7e07ce9 commit 16adea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/logger/src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,11 @@ class Logger extends Utility implements LoggerInterface {
}

/**
* Log the AWS Lambda event payload for the current invocation if the environment variable `POWERTOOLS_LOG_EVENT` is set to `true`.
* Log the AWS Lambda event payload for the current invocation if the environment variable `POWERTOOLS_LOGGER_LOG_EVENT` is set to `true`.
*
* @example
* ```ts
* process.env.POWERTOOLS_LOG_EVENT = 'true';
* process.env.POWERTOOLS_LOGGER_LOG_EVENT = 'true';
*
* import { Logger } from '@aws-lambda-powertools/logger';
*
Expand Down

0 comments on commit 16adea6

Please sign in to comment.