[gedit-latex] snippetmanager: add debug information
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] snippetmanager: add debug information
- Date: Thu, 6 Oct 2011 11:31:12 +0000 (UTC)
commit 31011ebc9ae9d4192349c9493f2a4cf55d94c486
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Oct 6 13:30:58 2011 +0200
snippetmanager: add debug information
latex/snippetmanager.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/latex/snippetmanager.py b/latex/snippetmanager.py
index 7cba311..13fb455 100644
--- a/latex/snippetmanager.py
+++ b/latex/snippetmanager.py
@@ -21,7 +21,7 @@ from gi.repository import Gtk, Gedit
from singleton import Singleton
import logging
-_log = logging.getLogger("snippet manager")
+LOG = logging.getLogger(__name__)
class SnippetManager(Singleton):
@@ -37,12 +37,14 @@ class SnippetManager(Singleton):
# FIXME: we miss the iter
bus.send('/plugins/snippets', 'parse-and-activate',
trigger=text, view=view)
+ LOG.info("Inserted using snippets plugin")
else:
buf = view.get_buffer()
buf.begin_user_action()
buf.insert(iter, text)
buf.end_user_action()
+ LOG.info("Inserted without snippets plugin")
def insert_at_cursor(self, editor, text):
buf = editor.tab_decorator.tab.get_document()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]