FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve logging output by joe4dev · Pull Request #19 · localstack/lambda-runtime-init · GitHub

Improve logging output - #19

Merged
joe4dev merged 2 commits into
localstackfrom
support/make-logging-levels-configurable
Apr 17, 2023
Merged

Improve logging output#19
joe4dev merged 2 commits into
localstackfrom
support/make-logging-levels-configurable

Conversation

joe4dev commented Apr 14, 2023
edited
Loading

Copy link
Copy Markdown
Member

Make init log levels configurable

Lambda container logs are very verbose such that it is hard for customers to identify what’s wrong with their Lambda implementation because the logs are mainly about RIE internals.

We already support log levels through the environment variable LOCALSTACK_INIT_LOG_LEVEL but only debug and trace is insufficient.

Go log levels: https://github.com/sirupsen/logrus#level-logging

What should be the default level? "warn + invocation result logging"

Follow Up

  • Add invocation result logging from PrintEndReports (currently only sent to CloudWatch)
  • Investigate / clean up warning printed upon every invocation:
2023-04-14 12:25:37 time="2023-04-14T10:25:37Z" level=warning msg="Reset initiated: SandboxTerminated" func=go.amzn.com/lambda/rapid.handleReset file="/Users/joe/Projects/LocalStack/lambda-runtime-init/lambda/rapid/start.go:589"

joe4dev added 2 commits April 14, 2023 12:50
* Support levels from Logrus
* Adjust xray logging accordingly
joe4dev requested a review from dominikschubert April 17, 2023 08:28

dominikschubert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, the new default level seems to be a sensible balance between clarity and verbosity 👍

As discussed, in the future we should look into introducing more control over stdout/stderr and also printing the platform messages (START/END/REPORT, ..)

joe4dev merged commit b87667e into localstack Apr 17, 2023
joe4dev deleted the support/make-logging-levels-configurable branch April 17, 2023 09:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL