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

[tor-commits] [ooni-probe/master] * Added a trick to supress scapy's annoying "No route found for IPv6 destination"



commit 2f126cdfa5f4971e3a670a6b90790cada05b2a89
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Thu Oct 11 22:26:02 2012 +0000

    * Added a trick to supress scapy's annoying "No route found for IPv6 destination"
      warnings.
---
 ooni/reporter.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ooni/reporter.py b/ooni/reporter.py
index 47b8158..5de2ff1 100644
--- a/ooni/reporter.py
+++ b/ooni/reporter.py
@@ -1,8 +1,9 @@
-import time
+import copy_reg
+import itertools
+import logging
 import sys
+import time
 import yaml
-import itertools
-import copy_reg
 
 from yaml.representer import *
 from yaml.emitter import *
@@ -16,6 +17,9 @@ from twisted.internet import defer
 from ooni.utils import date, log, geodata
 
 try:
+    ## Get rid of the annoying "No route found for 
+    ## IPv6 destination warnings":
+    logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
     from scapy.all import packet
 except:
     class FooClass:



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