logger icon indicating copy to clipboard operation
logger copied to clipboard

updated pretty printer stack trace to use error

Open FireAndIceFrog opened this issue 3 years ago • 1 comments

Pretty Printer:

When passing a stack trace to Log.d it obeys the errorMethodCount instead of the methodCount when cutting the size of the stack trace.

This is not ideal because I might just want to pass in an arbitrary stack trace without making it error.

Solution:

Make the stack trace sliced via either the methodCount or errorMethodCount depending on whether the error is defined (not null)

FireAndIceFrog avatar May 25 '22 03:05 FireAndIceFrog

This seems like a good idea to me.

neiljaywarner avatar May 25 '22 21:05 neiljaywarner