Bug 122560 - Add Bugzilla::_cleanup() handler
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1760 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
fbcea252a1
commit
59dd362e8e
|
@ -176,11 +176,16 @@ sub handle_request
|
|||
my $start = [gettimeofday];
|
||||
$in_eval = 1;
|
||||
eval { &{$subs{$script}}(); };
|
||||
$in_eval = 0;
|
||||
if ($@ && (!ref($@) || ref($@) ne 'Bugzilla::HTTPServerSimple::FakeExit'))
|
||||
{
|
||||
warn "Error while running $script:\n$@";
|
||||
}
|
||||
eval { Bugzilla::_cleanup(); };
|
||||
if ($@ && (!ref($@) || ref($@) ne 'Bugzilla::HTTPServerSimple::FakeExit'))
|
||||
{
|
||||
warn "Error in _cleanup():\n$@";
|
||||
}
|
||||
$in_eval = 0;
|
||||
my $elapsed = tv_interval($start) * 1000;
|
||||
print STDERR strftime("[%Y-%m-%d %H:%M:%S]", localtime)." Served $script in $elapsed ms\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue