[wp-trac] [WordPress Trac] #50333: Send complete error Stack Trace

WordPress Trac noreply at wordpress.org
Sat Jun 6 14:38:28 UTC 2020


#50333: Send complete error Stack Trace
-------------------------------------+------------------------------
 Reporter:  sebastienserre           |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Site Health              |     Version:  5.4.1
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:
-------------------------------------+------------------------------

Comment (by Clorith):

 The PHP function in use, `error_get_last()`, only gives the information
 that is shown in the email message.

 To get a bigger stack trace, one would have to switch to something like
 `debug_backtrace()`, which requires processing to build the trace your
 self (I'm not aware of any other functions that does anything similar, but
 if you know of some I'd love to hear about them).

 It's much simpler to provide an excerpt of the stack trace, and leave the
 full logging to actual log files.

 This helps avoid issues like emails becoming too large to be sent, memory
 exhaustion (especially if the error was caused by running out of memory in
 the first place), and last but not least making the emails look less like
 spam so that they don't get picked up by spamfilters as often.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50333#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list