lexi-lambda / envy

An environment variable manager for Racket applications
https://lexi-lambda.github.io/envy/envy.html
17 stars 1 forks source link

Debugging and logging? #7

Open jackfirth opened 9 years ago

jackfirth commented 9 years ago

When debugging issues in complex apps I find it helpful to know exactly what configuration the app is in. Would it be a useful feature to have something like a #:debug or #:log flag that printed out messages on app startup about the configuration?

lexi-lambda commented 9 years ago

This is an interesting idea, but storing sensitive information in environment variables is one of the more common use-cases (things like API credentials), so this would need to be enabled on a per-variable basis. Overall, I'm not totally convinced this is worth it, but it's a reasonable concept. I'll think about it.

jackfirth commented 9 years ago

The biggest source of headaches I've had with configuration is when something defaults to a value and I didn't expect it to, for instance when mis-spelling an environment variable. So some sort of restricted logging that only told the user whether any variables used their default values would be very useful and wouldn't requiring exposing private credentials.