gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Gossen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GORA-410) Change logging behavior to pass exception object to LOG methods
Date Tue, 17 Feb 2015 12:28:11 GMT
Gerhard Gossen created GORA-410:
-----------------------------------

             Summary: Change logging behavior to pass exception object to LOG methods
                 Key: GORA-410
                 URL: https://issues.apache.org/jira/browse/GORA-410
             Project: Apache Gora
          Issue Type: Bug
            Reporter: Gerhard Gossen


Throughout the codebase, exceptions are reported by logging {{e.getStackTrace().toString()}}.
As {{getStackTrace}} returns an array and Java's array {{.toString}} method just returns the
object ID, this means that the stack traces are effectively lost. Instead the exception should
be passed to the logger in its original form as the second argument, SLF4J does the right
thing with the stack trace.

This problem was tackled in GORA-230 for AccumuloStore. The attached patch corrects all instances
of the problem in the current trunk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message