diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-16 23:31:15 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-16 23:31:15 -0700 |
commit | d54ade7b3c18794d5ab79f707fc35f0da061306a (patch) | |
tree | f9e10c3f260b55f25e2966bc1ab46b3393685df9 /htetc/handler.pl | |
parent | 395b48e2a32e90ae0edf2e45a31758dc78181f04 (diff) |
web access logging to DB
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r-- | htetc/handler.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl index 18108ab11..45afafbec 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -7,6 +7,7 @@ use warnings; use FS::Mason qw( mason_interps ); use FS::Trace; use FS::Conf; +use FS::access_user_log; $FS::Conf::conf_cache_enabled = 1; # enable FS::Conf caching for performance @@ -107,7 +108,6 @@ sub handler return -1 if defined( $r->content_type ) && $r->content_type !~ m!(^text/|\bxml\b)!io; - local $SIG{__WARN__}; local $SIG{__DIE__}; @@ -139,6 +139,8 @@ sub handler } + FS::access_user_log->insert_new_path( $r->uri ); + FS::Trace->log('handling request'); my %session; my $status; |