[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [onionoo/master] Hotfix for #22594.



commit 907360f9d045eb0f062d0bc0322862e63358dd94
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Jun 14 21:50:21 2017 +0200

    Hotfix for #22594.
---
 src/main/java/org/torproject/onionoo/docs/DocumentStore.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/onionoo/docs/DocumentStore.java b/src/main/java/org/torproject/onionoo/docs/DocumentStore.java
index 34bc8ef..56ca406 100644
--- a/src/main/java/org/torproject/onionoo/docs/DocumentStore.java
+++ b/src/main/java/org/torproject/onionoo/docs/DocumentStore.java
@@ -537,8 +537,9 @@ public class DocumentStore {
     Gson gson = new Gson();
     try {
       result = gson.fromJson(documentString, documentType);
-    } catch (JsonParseException e) {
+    } catch (Throwable e) {
       /* Handle below. */
+      log.error(documentString);
       log.error(e.getMessage(), e);
     }
     if (result == null) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits