Open Bug 1262676 Opened 8 years ago Updated 5 years ago

Fix sentry error logging

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
normal

Tracking

()

People

(Reporter: dylan, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

$SIG{__DIE__} is evil. We use it for sentry. It gets call for every error, even errors that are eventually caught. 

I think we should catch top level errors differently when running under apache.
Attached patch 1262676_1.patchSplinter Review
Attachment #8738851 - Flags: review?(dkl)
Comment on attachment 8738851 [details] [diff] [review]
1262676_1.patch

Review of attachment 8738851 [details] [diff] [review]:
-----------------------------------------------------------------

for both mod_cgi and mod_perl, I no longer get header and footer for errors displayed to the browser. Only the error message in plain text on white background.

::: mod_perl.pl
@@ +159,4 @@
>          : $result;
>  }
>  
> +# this function is called when a cgi throws an uncaughter exception.

"uncaught"

@@ +159,5 @@
>          : $result;
>  }
>  
> +# this function is called when a cgi throws an uncaughter exception.
> +# it ignores exit(), conveniently, so we don't have to worry about cechking for that here.

"checking"
Attachment #8738851 - Flags: review?(dkl) → review-
curious about that. I'll have a revision up shortly.
I think I figured this out. You need to hack bz-dev-manager to NOT patch in $::SIG{__DIE__} in Bugzilla.pm.
No updates on this in the past year.  Just checking in as this was listed as a potential fix to bug 1324496.
Flags: needinfo?(dylan)
I know someone that can work on this. :-)
Flags: needinfo?(dylan)
Assignee: dylan → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: