Author: dmeyer
Date: Sun Oct 14 05:14:12 2007
New Revision: 2864
Log:
add warning when using notifier.step
Modified:
trunk/beacon/src/query.py
Modified: trunk/beacon/src/query.py
==============================================================================
--- trunk/beacon/src/query.py (original)
+++ trunk/beacon/src/query.py Sun Oct 14 05:14:12 2007
@@ -131,8 +131,10 @@
Iterate through theresults. This function will block using
kaa.notifier.step() if self.valid is False.
"""
- while not self.valid:
- kaa.notifier.step()
+ if not valid:
+ log.warning('calling notifier.step for %s' self)
+ while not self.valid:
+ kaa.notifier.step()
return self.result.__iter__()
@@ -142,8 +144,10 @@
exception if the object is still invalid or if the result is not a
list.
"""
- while not self.valid:
- kaa.notifier.step()
+ if not valid:
+ log.warning('calling notifier.step for %s' self)
+ while not self.valid:
+ kaa.notifier.step()
return self.result[key]
@@ -161,8 +165,10 @@
Get length of results. This function will block using
kaa.notifier.step() if self.valid is False.
"""
- while not self.valid:
- kaa.notifier.step()
+ if not valid:
+ log.warning('calling notifier.step for %s' self)
+ while not self.valid:
+ kaa.notifier.step()
return len(self.result)
@@ -171,8 +177,10 @@
Get the result. This function will block using kaa.notifier.step() if
self.valid is False.
"""
- while not self.valid:
- kaa.notifier.step()
+ if not valid:
+ log.warning('calling notifier.step for %s' self)
+ while not self.valid:
+ kaa.notifier.step()
if filter == None:
# no spcial filter
return self.result
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog