[tor-commits] [ooni-probe/master] Added warning suppression for scapy's logger to the beginning of oonicli.py.
isis at torproject.org
isis at torproject.org
Tue Dec 18 05:53:46 UTC 2012
commit a382177448f004a29a26b970be9e01bd799f1f0b
Author: Isis Lovecruft <isis at torproject.org>
Date: Tue Nov 27 14:12:33 2012 +0000
Added warning suppression for scapy's logger to the beginning of oonicli.py.
---
ooni/oonicli.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ooni/oonicli.py b/ooni/oonicli.py
index 263494b..9c2b4e6 100644
--- a/ooni/oonicli.py
+++ b/ooni/oonicli.py
@@ -19,13 +19,17 @@ from twisted.application import app
from twisted.python import usage, failure
from twisted.python.util import spewer
-from ooni import nettest, runner, reporter, config
-
-from ooni.inputunit import InputUnitFactory
+## Get rid of the annoying "No route found for
+## IPv6 destination warnings":
+import logging as pylogging
+pylogging.getLogger("scapy.runtime").setLevel(pylogging.ERROR)
+from ooni import nettest, runner, reporter, config
from ooni.utils import net
from ooni.utils import checkForRoot, PermissionsError
from ooni.utils import log
+from ooni.inputunit import InputUnitFactory
+
class Options(usage.Options, app.ReactorSelectionMixin):
synopsis = """%s [options] [path to test].py
More information about the tor-commits
mailing list