[issue41728] Debug logging when adding a TarFile object

2020-09-05 Thread Elliott Balsley
Change by Elliott Balsley : -- keywords: +patch pull_requests: +21200 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22116 ___ Python tracker <https://bugs.python.org/issu

[issue41728] Debug logging when adding a TarFile object

2020-09-05 Thread Elliott Balsley
Change by Elliott Balsley : -- title: Add logfile() when debug is True -> Debug logging when adding a TarFile object ___ Python tracker <https://bugs.python.org/issu

[issue41728] Add logfile() when debug is True

2020-09-05 Thread Elliott Balsley
New submission from Elliott Balsley : When you add a TarInfo object created directly in memory, for example from a byte string, there is no debug logging available. `tarfile.add()` logs the name of each file added when debug level is 1 or higher. I think it would be a good idea to do the