[metrics-db/master] Include exception message in logs.


Mon Feb 28 22:06:02 UTC 2011


commit 359765d8e7e39989f0fa5d3ef1b1ae8023f1f2d3
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu Jan 13 16:22:01 2011 +0100

    Include exception message in logs.
---
 .../torproject/ernie/db/LoggingConfiguration.java  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/org/torproject/ernie/db/LoggingConfiguration.java b/src/org/torproject/ernie/db/LoggingConfiguration.java
index d32f661..1112748 100644
--- a/src/org/torproject/ernie/db/LoggingConfiguration.java
+++ b/src/org/torproject/ernie/db/LoggingConfiguration.java
@@ -65,6 +65,7 @@ public class LoggingConfiguration {
         return dateTimeFormat.format(new Date(record.getMillis())) + " "
             + record.getLevel() + " " + record.getSourceClassName() + " "
             + record.getSourceMethodName() + " " + record.getMessage()
+            + (record.getThrown() != null ? " " + record.getThrown() : "")
             + "\n";
       }
     };



More information about the tor-commits mailing list