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

[tor-commits] [ooni-probe/master] Cast result to string before printing out log message.



commit ec11f24764d677589fde85cc1bd90860f0a6cccb
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Sun May 11 17:06:05 2014 +0200

    Cast result to string before printing out log message.
    
    This prevents raising an exception when debug mode is enabled and a measurement
    succeeds.
---
 ooni/managers.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ooni/managers.py b/ooni/managers.py
index cd05d42..f201a03 100644
--- a/ooni/managers.py
+++ b/ooni/managers.py
@@ -181,7 +181,7 @@ class MeasurementManager(LinkedTaskManager):
 
     def succeeded(self, result, measurement):
         log.debug("Successfully performed measurement %s" % measurement)
-        log.debug(result)
+        log.debug("%s" % result)
 
     def failed(self, failure, measurement):
         pass

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