Skip to content

Default host to '-' if envs not available #1029

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

Closed
wants to merge 1 commit into from

Conversation

jwittkoski
Copy link
Contributor

I ran into a case where I was trying to log something when the request object existed but before the request's env hash was fully populated which caused a warning ('Use of uninitialized value in substitution iterator') if the %h token was used in the logging formatting string.

This patch defaults the value to '-' (instead of a blank string) in this situation.

@yanick yanick closed this in 029b82a Jun 29, 2014
@yanick
Copy link
Contributor

yanick commented Jun 29, 2014

Merged, thanks!

@jwittkoski jwittkoski deleted the blank_env_host branch March 1, 2015 03:09
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