PerlDancer/Dancer — pull request #1029 by jwittkoski (2014-05-28 19:20:43+00:00)
Title: Default host to '-' if envs not available

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.