Re: stringifyException

2017-10-13 Thread Steve Loughran
> On 12 Oct 2017, at 21:20, Owen O'Malley wrote: > > It is a very old relic from when logging the exception just gave you the > message. It can should be replaced at some point. > I was staring at the code in org.apache.hadoop.mapred.Task about ten minutes ago thinking exactly that. Though

Re: stringifyException

2017-10-12 Thread dam6923 .
n logging the exception just gave you the > message. It can should be replaced at some point. > > .. Owen > > On Thu, Oct 12, 2017 at 1:17 PM, dam6923 . wrote: >> >> Hello, >> >> Can someone please explain what the value of >> org.apache.hadoop.util.StringUti

Re: stringifyException

2017-10-12 Thread Owen O'Malley
It is a very old relic from when logging the exception just gave you the message. It can should be replaced at some point. .. Owen On Thu, Oct 12, 2017 at 1:17 PM, dam6923 . wrote: > Hello, > > Can someone please explain what the value of > org.apache.hadoop.util.StringUtils#string

stringifyException

2017-10-12 Thread dam6923 .
Hello, Can someone please explain what the value of org.apache.hadoop.util.StringUtils#stringifyException is? How is this better than just allowing the logging framework to format the exception information? LOG.warn("show function: {}", stringifyException(e)); v.s. LOG.warn(&quo