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

Disable lambda print to console #1765

Open
Magnuti opened this issue Feb 29, 2024 · 0 comments
Open

Disable lambda print to console #1765

Magnuti opened this issue Feb 29, 2024 · 0 comments

Comments

@Magnuti
Copy link

Magnuti commented Feb 29, 2024

When running npx sls offline this is how my terminal looks like. When debugging my custom console logs are drowned by these logging lines.

(λ: sqsEvent) RequestId: 1d490a3a-f474-4d78-a704-65aabad2b73e  Duration: 7.41 ms  Billed Duration: 8 ms
(λ: sqsEvent) RequestId: d4363ece-c2ef-4b34-98af-3963b4cd21e2  Duration: 26.11 ms  Billed Duration: 27 ms
(λ: sqsEvent) RequestId: 0609e9fc-fd93-40b2-8715-5f18f96450b4  Duration: 15.14 ms  Billed Duration: 16 ms
Some useful logging scenario
(λ: sqsEvent) RequestId: b56635ba-737c-4a9b-a4d6-719fa610f9ca  Duration: 14.57 ms  Billed Duration: 15 ms
(λ: sqsEvent) RequestId: d5b8c69c-ac53-4ef7-a256-17a307d6c305  Duration: 21.43 ms  Billed Duration: 22 ms
(λ: sqsEvent) RequestId: 53a5538c-eb97-4f97-91d6-688a5949154b  Duration: 16.47 ms  Billed Duration: 17 ms
(λ: sqsEvent) RequestId: 2a6c266a-e091-4c24-8dea-f58c472060ca  Duration: 16.22 ms  Billed Duration: 17 ms

Is it possible to turn of the (λ: .. RequestId: .. Duration: ... logging?

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