log_first_n implementation doesn't match doc, ignores formatting args
Offen
- Vorherrschende Sprache
- Python
- Sterne
- 2.5k
- Forks
- 279
- Ø Merge
- 2 T. 1 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
The log_first_n doc says:
`Logs 'msg % args' at level 'level' only first 'n' times`
However, the implementation only tracks the caller's file and line number, and ignores the formatting args. So if I do something like:
```
for arg in ['arg1', 'arg2']:
log_first_n('%s', 1, arg)
```
It will never log for arg2.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.