Skip to content

isDebugEnabled() returning false when debug enabled through env var #293

Closed
@asmith-r7

Description

@asmith-r7

I have several sections in my debug wrapped in the logger.isDebugEnabled()
What I noticed is that setting the log level to debug through the env var LOG_LEVEL causes these log lines not to appear. This seems like a bug to me.

Expected Behavior

isDebugEnabled should return true.

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. Configure logging via config to be INFO
  2. Override to DEBUG via LOG_LEVEL env var

Environment

  • Powertools version used:
  • Packaging format (Layers, Maven/Gradle):
  • AWS Lambda function runtime:
  • Debugging logs

How to enable debug mode**

# paste logs here

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions