Skip to content

Commit 1b43fa6

Browse files
[3.10] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99852)
(cherry picked from commit 1d1bb95) Co-authored-by: cemysce <[email protected]>
1 parent a851797 commit 1b43fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/logging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def __init__(self, *args, **kwargs):
487487

488488
def usesTime(self):
489489
fmt = self._fmt
490-
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0
490+
return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0
491491

492492
def validate(self):
493493
pattern = Template.pattern

0 commit comments

Comments
 (0)