Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-99811: Use correct variable to search for time in format string (G…
…H-99812)

Use correct variable to search for asctime
(cherry picked from commit 1d1bb95)

Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
  • Loading branch information
cemysce authored and miss-islington committed Nov 28, 2022
commit 0cd04bfbec4318483c92872c0acd3bafd9c21d6a
2 changes: 1 addition & 1 deletion Lib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,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
Expand Down