Skip to content

Commit

Permalink
Log to the root logger, as that's the one Setuptools patches/validates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 29, 2022
1 parent 9ff90b7 commit e824025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distutils/_log.py
@@ -1,4 +1,4 @@
import logging


log = logging.getLogger('distutils')
log = logging.getLogger()
2 changes: 1 addition & 1 deletion distutils/dist.py
Expand Up @@ -466,7 +466,7 @@ def parse_command_line(self):
parser.set_aliases({'licence': 'license'})
args = parser.getopt(args=self.script_args, object=self)
option_order = parser.get_option_order()
log.setLevel(logging.WARN - 10 * self.verbose)
logging.getLogger().setLevel(logging.WARN - 10 * self.verbose)

# for display options we return immediately
if self.handle_display_options(option_order):
Expand Down

0 comments on commit e824025

Please sign in to comment.