diff --git a/all/debug_tools/logger.py b/all/debug_tools/logger.py index e3aff91..4047ae8 100644 --- a/all/debug_tools/logger.py +++ b/all/debug_tools/logger.py @@ -37,6 +37,7 @@ from logging import Logger from logging import Manager +from logging import PlaceHolder from logging import DEBUG from logging import WARNING @@ -466,9 +467,11 @@ def _fixChildren(self): for logger_name in loggers: logger = loggers[logger_name] - # i.e., if logger.parent.name.startswith( parent_name ) - if logger.parent.name[:parent_name_length] == parent_name: - logger.disable() + if not isinstance( logger, PlaceHolder ): + + # i.e., if logger.parent.name.startswith( parent_name ) + if logger.parent.name[:parent_name_length] == parent_name: + logger.disable() @classmethod def get_debug_file_path(cls, output_file): diff --git a/tests/testing/__init__.py b/tests/testing/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/manual_tests.py b/tests/testing/manual_tests.py similarity index 90% rename from tests/manual_tests.py rename to tests/testing/manual_tests.py index eeb925c..125ae36 100644 --- a/tests/manual_tests.py +++ b/tests/testing/manual_tests.py @@ -2,7 +2,7 @@ try: # To run this file, run on the Sublime Text console: - # import sublime_plugin; sublime_plugin.reload_plugin( "PythonDebugTools.tests.manual_tests" ) + # import sublime_plugin; sublime_plugin.reload_plugin( "PythonDebugTools.tests.testing.manual_tests" ) import sublime_plugin # Import and reload the debugger