From: Scott Gasch Date: Thu, 24 Feb 2022 23:52:21 +0000 (-0800) Subject: Also log about __debug__. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=5b50a18959c5d68fe8dcaafa5c3852b262130cbc;p=python_utils.git Also log about __debug__. --- 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.