diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 86e1efe6e653accaad08a06f04dd1119230b246a..9241d73d0fd03c110b5f767a2d4ed806b4f9f263 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -511,7 +511,7 @@ def __init__(self, *args, **kwargs): def usesTime(self): fmt = self._fmt - return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0 + return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 def validate(self): pattern = Template.pattern