diff options
| author | Scott Gasch <[email protected]> | 2022-02-24 15:52:21 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-24 15:52:21 -0800 |
| commit | 5b50a18959c5d68fe8dcaafa5c3852b262130cbc (patch) | |
| tree | 371e2a28fbfc635014b4f962ebc6b3799f3007c9 | |
| parent | b2073150ac359300b9353cb1b3b985754c77212d (diff) | |
Also log about __debug__.
| -rw-r--r-- | bootstrap.py | 4 |
1 files changed, 4 insertions, 0 deletions
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. |
