Closed
Bug 458528
Opened 17 years ago
Closed 17 years ago
Remove die_with_dignity()
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: LpSolit, Assigned: LpSolit)
Details
Attachments
(1 file, 1 obsolete file)
|
1019 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
While tracking a bug or a crash, I often need to know which function calls which other function, recursively. But die_with_dignity() is really bad to give us this information. I updated it to be a bit more helpful. Tested, works fine (of course when I enabled it, not when commented :) ).
Note that I was tempted to remove Carp::confess($err_msg), which I consider to be useless as the information is already displayed in the browser. But I keep it for now.
Attachment #341764 -
Flags: review?(mkanat)
Comment 1•17 years ago
|
||
Comment on attachment 341764 [details] [diff] [review]
patch, v1
No, in fact, we don't even need die_with_dignity.
For command-line scripts, we just need $SIG{__DIE__} = \&Carp::confess, and for CGI scripts, we want $SIG{__DIE__} = \&CGI::Carp::confess.
Attachment #341764 -
Flags: review?(mkanat) → review-
| Assignee | ||
Comment 2•17 years ago
|
||
Remove die_with_dignity().
Attachment #341764 -
Attachment is obsolete: true
Attachment #341781 -
Flags: review?(mkanat)
| Assignee | ||
Updated•17 years ago
|
Summary: Improve die_with_dignity → Remove die_with_dignity()
Comment 3•17 years ago
|
||
Comment on attachment 341781 [details] [diff] [review]
patch, v2
Looks good to me!
Attachment #341781 -
Flags: review?(mkanat) → review+
Updated•17 years ago
|
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
| Assignee | ||
Comment 4•17 years ago
|
||
tip:
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v <-- Bugzilla.pm
new revision: 1.69; previous revision: 1.68
done
3.2rc1:
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v <-- Bugzilla.pm
new revision: 1.65.2.3; previous revision: 1.65.2.2
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•