mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-40300: Allow empty logging.Formatter.default_msec_format. (GH-19551)
This commit is contained in:
parent
1ae035b7e8
commit
06a35542aa
3 changed files with 19 additions and 2 deletions
|
|
@ -597,8 +597,9 @@ class Formatter(object):
|
|||
if datefmt:
|
||||
s = time.strftime(datefmt, ct)
|
||||
else:
|
||||
t = time.strftime(self.default_time_format, ct)
|
||||
s = self.default_msec_format % (t, record.msecs)
|
||||
s = time.strftime(self.default_time_format, ct)
|
||||
if self.default_msec_format:
|
||||
s = self.default_msec_format % (s, record.msecs)
|
||||
return s
|
||||
|
||||
def formatException(self, ei):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue