Skip to content
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

fix - change the way the log level is mapped #22

Merged

Conversation

ljsomm
Copy link
Contributor

@ljsomm ljsomm commented Mar 21, 2025

Problematic case:

Whenever we try to map debug level to it's equivalent number representation (0) and check if it was corrected map by using pipes (||) we might receive an undesired behavior:

image

Given that, a good alternative is to use nullable coalescing operator (??), so in this scenario the problem won't happen:

image

@ljsomm ljsomm force-pushed the bugfix/log-level-zero-mapping branch from cd2d6c2 to bf59600 Compare March 21, 2025 14:13
@DanielMuller DanielMuller merged commit 649d1b0 into serverless-guru:main Mar 21, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants