From 5b50a18959c5d68fe8dcaafa5c3852b262130cbc Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 24 Feb 2022 15:52:21 -0800 Subject: [PATCH] Also log about __debug__. --- bootstrap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap.py b/bootstrap.py index 1316dab..52359f1 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -269,6 +269,10 @@ def initialize(entry_point): logger.debug('Python interpreter version: %s', sys.version) logger.debug('Python implementation: %s', sys.implementation) logger.debug('Python C API version: %s', sys.api_version) + if __debug__: + logger.debug('Python interpreter running in __debug__ mode.') + else: + logger.debug('Python interpreter running in optimized mode.') logger.debug('Python path: %s', sys.path) # Log something about the site_config, many things use it. -- 2.45.2