Skip to content

Commit

Permalink
Shorter but more readable rendering error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacchella committed Sep 19, 2011
1 parent aedb8ca commit 0706054
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jrds/Renderer.java
Expand Up @@ -120,7 +120,11 @@ private synchronized void writeImg() {
if(cause != null)
logger.error(" Cause was: " + cause);
} catch (Exception e) {
logger.error("Run time rendering " + this, e);
if(logger.isDebugEnabled())
logger.error("Error rendering a graph: " + e, e);
else
logger.error("Error rendering a graph: " + e);

} finally {
//Always set to true, we do not try again in case of failure
finished = true;
Expand Down

0 comments on commit 0706054

Please sign in to comment.