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 Nov 13, 2022
1 parent 8e5842a commit d763948
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging


log = logging.getLogger('distutils')
log = logging.getLogger()
2 changes: 1 addition & 1 deletion distutils/dist.py
Original file line number Diff line number Diff line change
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 d763948

Please sign in to comment.