Open
Bug 1262676
Opened 8 years ago
Updated 5 years ago
Fix sentry error logging
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
NEW
People
(Reporter: dylan, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.97 KB,
patch
|
dkl
:
review-
|
Details | Diff | Splinter Review |
$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.
Reporter | ||
Comment 1•8 years ago
|
||
Attachment #8738851 -
Flags: review?(dkl)
Comment 2•8 years ago
|
||
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-
Reporter | ||
Comment 3•8 years ago
|
||
curious about that. I'll have a revision up shortly.
Reporter | ||
Comment 4•8 years ago
|
||
I think I figured this out. You need to hack bz-dev-manager to NOT patch in $::SIG{__DIE__} in Bugzilla.pm.
Comment 5•7 years ago
|
||
No updates on this in the past year. Just checking in as this was listed as a potential fix to bug 1324496.
Updated•7 years ago
|
Flags: needinfo?(dylan)
Reporter | ||
Updated•5 years ago
|
Assignee: dylan → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•