Skip to content

LOG_LEVEL is not honored #434

Closed
Closed
@sebsto

Description

@sebsto

Expected behavior

When setting the LOG_LEVEL=debug environment variable, the out put of a Lambda context.logger.debug(...) call should be visible on CloudWatch logs.

Actual behavior

No logs are produced.

Steps to reproduce

  1. create a Lambda function with
    context.logger.debug("my log message")
  1. Deploy and invoke it.. Be sure you define LOG_LEVEL=debug as an environment variable
# SAM Template
      Environment:
        Variables:
          LOG_LEVEL: debug

If possible, minimal yet complete reproducer code (or URL to code)

See https://github.com/swift-server/swift-aws-lambda-runtime/tree/main/Examples/APIGateway

What version of this project (swift-aws-lambda-runtime) are you using?

main

Swift version

6.x

Amazon Linux 2 docker image version

ALI2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions