We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d507e9 + ff149fb commit 029b82aCopy full SHA for 029b82a
CHANGES
@@ -6,6 +6,8 @@ NEXT
6
* 'dancer' script warns and die if trying to create
7
an app with the same name of an existing module.
8
(GH#1038, Racke)
9
+ * In Dancer::Logger::Abstract, default host
10
+ name to '-' if not available. (GH#1029, John Wittkoski)
11
12
[ DOCUMENTATION ]
13
* Improve the wording of the params() section in Dancer.
lib/Dancer/Logger/Abstract.pm
@@ -89,7 +89,7 @@ sub format_message {
89
my $chars_mapping = {
90
h => sub {
91
defined $r
92
- ? $r->env->{'HTTP_X_REAL_IP'} || $r->env->{'REMOTE_ADDR'}
+ ? $r->env->{'HTTP_X_REAL_IP'} || $r->env->{'REMOTE_ADDR'} || '-'
93
: '-';
94
},
95
t => sub { Encode::decode(setting('charset') || 'utf8',
0 commit comments