Log minimum 1 second wait
This commit is contained in:
1 parent
06293dc0a2
commit
a763957334
1 file changed
+1
-1
@@ -279,7 +279,7 @@ class Plugin(object):
|
|||||||
wait = (last_use - now) + self.http_time_between_calls
|
wait = (last_use - now) + self.http_time_between_calls
|
||||||
|
|
||||||
if wait > 0:
|
if wait > 0:
|
||||||
log.debug('Waiting for %s, %d seconds', (self.getName(), wait))
|
log.debug('Waiting for %s, %d seconds', (self.getName(), max(1, wait)))
|
||||||
time.sleep(min(wait, 30))
|
time.sleep(min(wait, 30))
|
||||||
|
|
||||||
def beforeCall(self, handler):
|
def beforeCall(self, handler):
|
||||||
|
|||||||
Reference in new issue
Block a user