diff --git a/uasyncio.core/uasyncio/core.py b/uasyncio.core/uasyncio/core.py index e1a5bd2b..87d0e605 100644 --- a/uasyncio.core/uasyncio/core.py +++ b/uasyncio.core/uasyncio/core.py @@ -41,7 +41,8 @@ class EventLoop: def wait(self, delay): # Default wait implementation, to be overriden in subclasses # with IO scheduling - log.debug("Sleeping for: %s", delay) + if __debug__: + log.debug("Sleeping for: %s", delay) time.sleep(delay) def run_forever(self):