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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy