[gedit-plugins] git: Be more verbose in the debug messages
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] git: Be more verbose in the debug messages
- Date: Wed, 18 Feb 2015 16:59:38 +0000 (UTC)
commit 62ffd89f38d10970d5b4ee1ce115658627b0aa72
Author: Garrett Regier <garrettregier gmail com>
Date: Sat Feb 14 17:35:26 2015 -0800
git: Be more verbose in the debug messages
plugins/git/git/workerthread.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/git/git/workerthread.py b/plugins/git/git/workerthread.py
index b490d33..de53bce 100644
--- a/plugins/git/git/workerthread.py
+++ b/plugins/git/git/workerthread.py
@@ -117,10 +117,11 @@ class WorkerThread(threading.Thread):
if not self.__has_idle.is_set():
self.__has_idle.set()
- debug('%s<%s>: idle added' % (type(self).__name__, self.name))
+ debug('%s<%s>: result callback idle started' %
+ (type(self).__name__, self.name))
GLib.source_set_name_by_id(GLib.idle_add(self.__in_idle),
- '[gedit] %s result callback idle' %
- (self.__class__.__name__))
+ '[gedit] git %s result callback idle' %
+ (type(self).__name__,))
def __in_idle(self):
try:
@@ -140,7 +141,8 @@ class WorkerThread(threading.Thread):
# Only remove the idle when there are no more items,
# some could have been added after the IndexError was raised
if len(self.__results) == 0:
- debug('%s<%s>: idle done' % (type(self).__name__, self.name))
+ debug('%s<%s>: result callback idle finished' %
+ (type(self).__name__, self.name))
return GLib.SOURCE_REMOVE
return GLib.SOURCE_CONTINUE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]