GRAILS-7232: Refine the stack sanitization and improve the output readability of regular traces #3856
Comments
wangjammer5 said: |
brownj said: |
wangjammer5 said: |
david_beutel said: |
pledbrook said: |
graemerocher said: |
graemerocher said: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original Reporter: wangjammer5
Environment: Not Specified
Version: 1.3.6
Migrated From: http://jira.grails.org/browse/GRAILS-7232
I mentioned the idea to alter the output of stack traces on the list, and it was enthusiastically received.
Basically we'd either need to replace the printStackTrace impl or call our own stack dumper method whenever we dump traces. This may be non-trivial, but the gains will be significant.
Key requirements:
Example desired output:
{code}
=============== GRAILS EXCEPTION ===================
Cannot get property 'userName' on null object (java.lang.NullPointerException)
doCall method on line 217 in NoticeUtilsService.groovy (NoticeUtilsService$_processResults_closure5_closure7)
Stack trace:
Line | Method
->> 217 | doCall in NoticeUtilsService.groovy
| | - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 216 | doCall in " "
| 214 | processResults in " "
| 129 | mapFields in KnownUserService.groovy
| 97 | sendMessage in NoticeEventsService.groovy
| 58 | noticeEvent in " "
| 199 | doCall in BoardAreaController.groovy
| 167 | doArchiveRestore in " "
| 127 | doCall in " "
^ 680 | run in Thread.java (java.lang)
See your unsanitized stack log for the full Java stack trace if necessary.
{code}
The detail is important here:
The text was updated successfully, but these errors were encountered: