Codebase list onioncircuits / 925b8dc
More coherent logging levels and messages Tails developers 8 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
219219
220220 :returns: **False**
221221 """
222 logging.debug("Controller initialized")
222 logging.info("controller connected")
223223 self._path.set_sensitive(True)
224224 self._treeview.set_sensitive(True)
225225 self._infobar_label.set_text(_("Connected to the Tor daemon! "
242242 **True** if we failed to reconnect (so that GLib.timeout_add will call
243243 the method again).
244244 """
245 logging.debug("Trying to reconnect the controller")
245 logging.debug("trying to reconnect the controller")
246246 try:
247247 self.controller.connect()
248248 self.controller.authenticate()
262262 **True** if we failed to connect (so that GLib.timeout_add will call
263263 the method again).
264264 """
265 logging.debug("Trying to connect the controller")
265 logging.debug("trying to connect the controller")
266266 controller = self.get_application().connect_controller()
267267 if controller:
268268 self.controller = controller
287287 # It may happen that the treeiter is not valid anymore
288288 # e.g. because it represents a stream that has been remapped
289289 # to another circuit.
290 logging.debug("cannot remove %s which is not valid")
290 logging.warn("cannot remove %s which is not valid")
291291 return False # to cancel the repetition when used in timeout_add
292292
293293 # Circuits
327327
328328 :var stem.response.events.CircuitEvent circuit: the circuit
329329 """
330 logging.debug("updating circuit %s" % circuit)
330 logging.debug("updating circuit %s" % circuit.id)
331331 if circuit.reason:
332332 status = _("%s: %s") % (str(circuit.status).capitalize(),
333333 str(circuit.reason).lower())
396396 return None
397397 circ_iter = self._circ_to_iter[stream.circ_id]
398398 if not circ_iter:
399 logging.warn("No iter found for %s" % circ_id)
399 logging.warn("no iter found for %s" % circ_id)
400400 circ_iter = self.add_circuit(self.controller.get_circuit(circ_id))
401401 stream_iter = self._treestore.append(circ_iter,
402402 [self.TYPE_STREAM,
499499 try:
500500 circuit = self.controller.get_circuit(circ_id)
501501 except ValueError as e: # The circuit doesn't exist anymore
502 logging.debug("circuit %s not known by Tor: %s" % (circ_id, e))
502 logging.warn("circuit %s not known by Tor: %s" % (circ_id, e))
503503 return False
504504 self.show_circuit_details(circuit)
505505 return False