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

Production environment causing naming inconsistency #108

Closed
InoMurko opened this issue Jan 26, 2018 · 2 comments
Closed

Production environment causing naming inconsistency #108

InoMurko opened this issue Jan 26, 2018 · 2 comments

Comments

@InoMurko
Copy link

Is there a specific reason why you would treat production environment as an exception?

https://github.com/pinterest/elixometer/blob/master/lib/utils.ex#L14

@scohen
Copy link
Collaborator

scohen commented Jan 26, 2018

Yes, it's because the log volume is so high that not sending the text "prod" to logging on every request is significant.

@scohen
Copy link
Collaborator

scohen commented Jan 26, 2018

If you want to have prod in your logs, you can make your prefix "#{actual_prefix}.#{Mix.env}"

@scohen scohen closed this as completed Jan 26, 2018
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

2 participants