[orca] Add debugging
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add debugging
- Date: Tue, 16 Jul 2019 15:21:15 +0000 (UTC)
commit 73d76bdea704216e25a2dc7e5c43118c33472df2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jul 16 11:20:59 2019 -0400
Add debugging
src/orca/liveregions.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/orca/liveregions.py b/src/orca/liveregions.py
index bb833fe64..b21b705b7 100644
--- a/src/orca/liveregions.py
+++ b/src/orca/liveregions.py
@@ -6,6 +6,7 @@ from gi.repository import GLib
from . import cmdnames
from . import chnames
+from . import debug
from . import keybindings
from . import messages
from . import input_event
@@ -225,6 +226,7 @@ class LiveRegionManager:
"""
if len(self.msg_queue) > 0:
+ debug.println(debug.eventDebugLevel, "\nvvvvv PRESENT LIVE REGION MESSAGE vvvvv")
self.msg_queue.purgeByKeepAlive()
politeness, timestamp, message, obj = self.msg_queue.dequeue()
# Form output message. No need to repeat labels and content.
@@ -246,6 +248,10 @@ class LiveRegionManager:
if not self.monitoring:
self.msg_queue.purgeByKeepAlive()
+ msg = 'LIVE REGIONS: messages in queue: %i' % len(self.msg_queue)
+ debug.println(debug.LEVEL_INFO, msg, True)
+ debug.println(debug.eventDebugLevel, "^^^^^ PRESENT LIVE REGION MESSAGE ^^^^^\n")
+
# See you again soon, stay in event loop if we still have messages.
return len(self.msg_queue) > 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]