web access logging to DB
[freeside.git] / htetc / handler.pl
index 18108ab..45afafb 100644 (file)
@@ -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;