Skip to content

Commit 38885fb

Browse files
committed
uasyncio.core: Protect another case of debug logging with "if __debug__:".
1 parent 2629088 commit 38885fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uasyncio.core/uasyncio/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def call_at(self, time, callback, *args):
4141
def wait(self, delay):
4242
# Default wait implementation, to be overriden in subclasses
4343
# with IO scheduling
44-
log.debug("Sleeping for: %s", delay)
44+
if __debug__:
45+
log.debug("Sleeping for: %s", delay)
4546
time.sleep(delay)
4647

4748
def run_forever(self):

0 commit comments

Comments
 (0)