Skip to content

Bug: incorrect log level in CloudWatch #378

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
saragerion opened this issue Jan 3, 2022 · 1 comment · Fixed by #386
Closed

Bug: incorrect log level in CloudWatch #378

saragerion opened this issue Jan 3, 2022 · 1 comment · Fixed by #386
Assignees
Labels
bug Something isn't working completed This item is complete and has been merged/shipped logger This item relates to the Logger Utility
Milestone

Comments

@saragerion
Copy link
Contributor

Bug description

Right now when printing log items, the log level (DEBUG, INFO, WARN, ERROR) is correctly state in the structured log JSON, but in cloudwatch they are processed all as INFO logs.

Expected Behavior

Each log item in CloudWatch is processed using the correct logging level.

Current Behavior

All log items have an INFO log level in CW.

Possible Solution

Use the proper console method (console.debug, console.info, console.warn, console.error).

Steps to Reproduce

N/A

Environment

  • Powertools version used: main branch
  • Packaging format (Layers, npm): NPM
  • AWS Lambda function runtime: all
  • Debugging logs: N/A

Related issues, RFCs

N/A

@saragerion saragerion added bug Something isn't working triage This item has not been triaged by a maintainer, please wait labels Jan 3, 2022
@dreamorosi dreamorosi added logger This item relates to the Logger Utility and removed triage This item has not been triaged by a maintainer, please wait labels Jan 3, 2022
@dreamorosi dreamorosi added this to the beta-release milestone Jan 3, 2022
@saragerion saragerion linked a pull request Jan 3, 2022 that will close this issue
10 tasks
@saragerion saragerion changed the title bug(logger): incorrect log level in CloudWatch Logger: bug - incorrect log level in CloudWatch Jan 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2022

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@dreamorosi dreamorosi changed the title Logger: bug - incorrect log level in CloudWatch Bug: incorrect log level in CloudWatch Nov 14, 2022
@dreamorosi dreamorosi added the completed This item is complete and has been merged/shipped label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed This item is complete and has been merged/shipped logger This item relates to the Logger Utility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants