[Jifty-commit] jifty-plugin-accesslog branch, master, updated. 2334cd74caedfec115507290e31eefc7312d38c8
Jifty commits
jifty-commit at lists.jifty.org
Fri Mar 26 11:26:56 EDT 2010
The branch, master has been updated
via 2334cd74caedfec115507290e31eefc7312d38c8 (commit)
from 908a3c1411eab47b7404daa9fcc84c78e802c7c6 (commit)
Summary of changes:
lib/Jifty/Plugin/AccessLog.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 2334cd74caedfec115507290e31eefc7312d38c8
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Mar 26 23:26:55 2010 +0800
make %a be address, %h remote_host||address
diff --git a/lib/Jifty/Plugin/AccessLog.pm b/lib/Jifty/Plugin/AccessLog.pm
index 3f267a6..7e2ea00 100644
--- a/lib/Jifty/Plugin/AccessLog.pm
+++ b/lib/Jifty/Plugin/AccessLog.pm
@@ -206,11 +206,11 @@ sub before_cleanup {
my %ESCAPES = (
'%' => sub { '%' },
- a => sub { $r->remost_host },
+ a => sub { $r->address },
C => sub { my $c = { CGI::Cookie->fetch() }->{+shift}; $c ? $c->value : undef },
D => sub { sprintf "%.3fms", (Time::HiRes::time - $self->start)*1000 },
e => sub { $ENV{+shift} },
- h => sub { $r->remote_host },
+ h => sub { $r->remote_host || $r->address },
i => sub { $r->header(shift) },
l => sub { substr( Jifty->web->session->id || '-', 0, 8 ) },
m => sub { $r->method },
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list