From 4cfc1c6fd25c3425ee5be539cc9e1b2cb755693c Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 30 Dec 2009 01:05:51 +0000 Subject: [PATCH] Improve debugging relating to URL mangler plugins --- terminatorlib/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index cc6b5925..7610c99b 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -227,7 +227,7 @@ class Terminal(gtk.VBox): match = urlplugin.match self.matches[name] = self.vte.match_add(match) dbg('Terminal::update_matches: added plugin URL handler \ -for %s' % name) +for %s (%s)' % (name, urlplugin.__class__.__name__)) except Exception as ex: err('Terminal::update_url_matches: %s' % ex) @@ -891,6 +891,8 @@ for %s' % name) if match == self.matches[urlplugin.handler_name]: newurl = urlplugin.callback(url) if newurl is not None: + dbg('Terminal::prepare_url: URL prepared by \ +%s plugin' % urlplugin.handler_name) url = newurl break; except Exception as ex: