Page MenuHomePhabricator

Improve the stack traces from phlog($exception)
ClosedPublic

Authored by epriestley on Jun 4 2015, 1:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 2:11 AM
Unknown Object (File)
Mon, Apr 29, 1:33 PM
Unknown Object (File)
Thu, Apr 25, 8:43 PM
Unknown Object (File)
Wed, Apr 24, 9:48 PM
Unknown Object (File)
Sun, Apr 21, 8:54 PM
Unknown Object (File)
Sun, Apr 21, 3:37 PM
Unknown Object (File)
Wed, Apr 17, 2:25 PM
Unknown Object (File)
Thu, Apr 11, 6:54 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.