summaryrefslogtreecommitdiff
path: root/htetc/handler.pl
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-06-16 23:31:31 -0700
committerIvan Kohler <ivan@freeside.biz>2015-06-16 23:31:31 -0700
commitebd89c7672e0bf5150fe1c2f89c2f88b90304e8d (patch)
treea71843ecc78e3b652d99402be80dc212350ede1f /htetc/handler.pl
parent5b55f642a6c0a3e0e2d3c35414cb7da9ac1578f4 (diff)
web access logging to DB
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r--htetc/handler.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 3c68e83ed..f41a3df70 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -6,6 +6,7 @@ use strict;
use warnings;
use FS::Mason qw( mason_interps );
use FS::Trace;
+use FS::access_user_log;
if ( %%%RT_ENABLED%%% ) {
@@ -104,7 +105,6 @@ sub handler
return -1 if defined( $r->content_type )
&& $r->content_type !~ m!(^text/|\bxml\b)!io;
-
local $SIG{__WARN__};
local $SIG{__DIE__};
@@ -136,6 +136,8 @@ sub handler
}
+ FS::access_user_log->insert_new_path( $r->uri );
+
FS::Trace->log('handling request');
my %session;
my $status;