Skip to content

LOG_LEVEL is not honored #434

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

Closed
sebsto opened this issue Dec 19, 2024 · 1 comment
Closed

LOG_LEVEL is not honored #434

sebsto opened this issue Dec 19, 2024 · 1 comment

Comments

@sebsto
Copy link
Contributor

sebsto commented Dec 19, 2024

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

sebsto added a commit to sebsto/swift-aws-lambda-runtime that referenced this issue Dec 19, 2024
sebsto added a commit that referenced this issue Dec 19, 2024
@sebsto
Copy link
Contributor Author

sebsto commented Dec 19, 2024

closed by #435

@sebsto sebsto closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant