From 24f741df2f56c77a603f9e4c6bcb2bbcd7871dff Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 11 Apr 2012 18:08:26 +0800 Subject: Bug 744022: minor arecibo report tweaks --- Bugzilla/Arecibo.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Arecibo.pm b/Bugzilla/Arecibo.pm index 92c99c399..11563e834 100644 --- a/Bugzilla/Arecibo.pm +++ b/Bugzilla/Arecibo.pm @@ -77,7 +77,7 @@ use constant CONFIG => { # any error messages matching these regex's will not be sent to arecibo ignore => [ - qr/^Software caused connection abort/, + qr/Software caused connection abort/, ], }; @@ -167,10 +167,18 @@ sub arecibo_handle_error { my $username = ''; eval { $username = Bugzilla->user->login }; + my $request = ''; + foreach my $name (sort { lc($a) cmp lc($b) } keys %ENV) { + $request .= "$name=$ENV{$name}\n"; + } + chomp($request); + my $data = [ + ip => remote_ip(), msg => $message, priority => $priority, server => hostname(), + request => $request, status => '500', timestamp => email_gmdate(), traceback => $traceback, -- cgit v1.2.3-24-g4f1b