Skip to content

Commit d763948

Browse files
committed
Log to the root logger, as that's the one Setuptools patches/validates.
1 parent 8e5842a commit d763948

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

distutils/_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import logging
22

33

4-
log = logging.getLogger('distutils')
4+
log = logging.getLogger()

distutils/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def parse_command_line(self):
466466
parser.set_aliases({'licence': 'license'})
467467
args = parser.getopt(args=self.script_args, object=self)
468468
option_order = parser.get_option_order()
469-
log.setLevel(logging.WARN - 10 * self.verbose)
469+
logging.getLogger().setLevel(logging.WARN - 10 * self.verbose)
470470

471471
# for display options we return immediately
472472
if self.handle_display_options(option_order):

0 commit comments

Comments
 (0)