Page MenuHomePhabricator

Improve the stack traces from phlog($exception)
ClosedPublic

Authored by epriestley on Jun 4 2015, 1:08 PM.
Tags
None
Referenced Files
F18837697: D13150.id.diff
Mon, Oct 27, 7:22 AM
F18835963: D13150.diff
Sun, Oct 26, 8:30 PM
F18762094: D13150.diff
Oct 6 2025, 5:29 PM
F18628736: D13150.id.diff
Sep 16 2025, 7:11 AM
F18420283: D13150.id31786.diff
Aug 30 2025, 4:06 PM
F18412355: D13150.diff
Aug 30 2025, 6:35 AM
F18096265: D13150.id31786.diff
Aug 8 2025, 5:45 AM
F18092300: D13150.id.diff
Aug 7 2025, 9:30 AM
Subscribers

Details

Summary

Fixes T8331. When we throw an uncaught exception in Phabricator, it sometimes ends up getting phlog()'d.

The traces this function prints out are from the phlog() call, not the original exception. This reduces their diagnostic value significantly.

Since we can build reasonable compound stack traces for complex exceptions now, just create a complex exception (don't throw it) and use that stack instead.

Test Plan

Used this patch to get a reasonable stack for T8415.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve the stack traces from phlog($exception).
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: joshuaspence, btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 4 2015, 4:33 PM
This revision was automatically updated to reflect the committed changes.