Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

How do you test stdout logging in development? #209

Open
axelson opened this issue Jul 5, 2019 · 2 comments
Open

How do you test stdout logging in development? #209

axelson opened this issue Jul 5, 2019 · 2 comments

Comments

@axelson
Copy link
Contributor

axelson commented Jul 5, 2019

I just wasted a bunch of time because no matter what I did no context was logged to stdout. Turns out there is a MessageOnlyFormatter that is transparently used in development without any initialization message or notice in the docs. Is there a way to disable it in development? If not how can I test that my context is being correctly populated when sending to stdout?

@axelson
Copy link
Contributor Author

axelson commented Aug 29, 2019

@kodujeme
Copy link

what worked for me was I set RACK_ENV=production when started the server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants