diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 19:59:18 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-02-09 19:59:18 -0800 |
commit | d1803f981555834967c8164aa7dba45e96cd6569 (patch) | |
tree | bcb292de799f5f15b742148d90c39b52ff1fb657 /FS/FS/Mason | |
parent | 52e2e7880c1cb061cac6896613abf17eea5df13f (diff) |
store render times in access log, RT#39822
Diffstat (limited to 'FS/FS/Mason')
-rw-r--r-- | FS/FS/Mason/Request.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/FS/FS/Mason/Request.pm b/FS/FS/Mason/Request.pm index 0d9c6d4..99a8daa 100644 --- a/FS/FS/Mason/Request.pm +++ b/FS/FS/Mason/Request.pm @@ -4,8 +4,8 @@ use strict; use warnings; use vars qw( $FSURL $QUERY_STRING ); use base 'HTML::Mason::Request'; +use IO::Handle; use FS::Trace; -use FS::access_user_log; $FSURL = 'http://Set/FS_Mason_Request_FSURL/in_standalone_mode/'; $QUERY_STRING = ''; @@ -46,12 +46,11 @@ my $protect_fds; sub freeside_setup { my( $class, $filename, $mode ) = @_; - FS::Trace->log(' protecting fds'); - #from rt/bin/webmux.pl(.in) if ( !$protect_fds && $ENV{'MOD_PERL'} && exists $ENV{'MOD_PERL_API_VERSION'} && $ENV{'MOD_PERL_API_VERSION'} >= 2 ) { + FS::Trace->log(' protecting fds'); # under mod_perl2, STDIN and STDOUT get closed and re-opened, # however they are not on FD 0 and 1. In this case, the next # socket that gets opened will occupy one of these FDs, and make @@ -130,8 +129,6 @@ sub freeside_setup { } - FS::access_user_log->insert_new_path( $filename ); - FS::Trace->log(' done'); } |