Commit 544a472
[3.13] pythongh-120683: Fix an error in logging.LogRecord timestamp (pythonGH-120709) (pythonGH-120933)
The integer part of the timestamp can be rounded up, while the millisecond
calculation truncates, causing the log timestamp to be wrong by up to 999 ms
(affected roughly 1 in 8 million timestamps).
(cherry picked from commit 1500a23)
Co-authored-by: Serhiy Storchaka <[email protected]>1 parent b7240ed commit 544a472
File tree
3 files changed
+15
-3
lines changed- Lib
- logging
- test
- Misc/NEWS.d/next/Library
3 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
348 | 351 | | |
349 | 352 | | |
350 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4648 | 4648 | | |
4649 | 4649 | | |
4650 | 4650 | | |
| 4651 | + | |
4651 | 4652 | | |
4652 | 4653 | | |
4653 | 4654 | | |
4654 | 4655 | | |
4655 | 4656 | | |
4656 | | - | |
4657 | | - | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
4658 | 4663 | | |
4659 | 4664 | | |
4660 | 4665 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments