From 093a10e8b90f0ede48e09a2bd58342095966ff95 Mon Sep 17 00:00:00 2001 From: cemysce <13400533+cemysce@users.noreply.github.com> Date: Sun, 27 Nov 2022 01:39:50 -0500 Subject: [PATCH] Use correct variable to search for asctime --- Lib/logging/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 86e1efe6e653ac..9241d73d0fd03c 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