From 0401fe27103967a34a7ce6dc5b446b697d9f0ac9 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 23 Oct 2022 11:13:09 -0700 Subject: Address style comment on cal to DispatchingFormatter() from mwichmann. Good call --- SCons/Taskmaster/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SCons/Taskmaster/__init__.py b/SCons/Taskmaster/__init__.py index d94c892..ef5b7d4 100644 --- a/SCons/Taskmaster/__init__.py +++ b/SCons/Taskmaster/__init__.py @@ -665,11 +665,12 @@ class Taskmaster: task_formatter = logging.Formatter('%(name)s.%(message)s') Task.LOGGER = tl - log_handler.setFormatter(DispatchingFormatter({ + log_handler.setFormatter(DispatchingFormatter( + formatters={ 'Taskmaster': tm_formatter, 'Task': task_formatter, }, - logging.Formatter('%(message)s') + default_formatter=logging.Formatter('%(message)s') )) def find_next_candidate(self): -- cgit v0.12