classification
Title: Debug logging when adding a TarFile object
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ebalsley, ethan.furman, lars.gustaebel
Priority: normal Keywords: patch

Created on 2020-09-05 23:48 by ebalsley, last changed 2020-09-06 02:23 by xtreak.

Pull Requests
URL Status Linked Edit
PR 22116 open ebalsley, 2020-09-05 23:57
Messages (1)
msg376448 - (view) Author: Elliott Balsley (ebalsley) * Date: 2020-09-05 23:48
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 same for `tarfile.addfile()`, perhaps with a higher debug level.  It looks like debug=3 is currently unused, even though it's defined in the documentation.
History
Date User Action Args
2020-09-06 02:23:09xtreaksetnosy: + lars.gustaebel, ethan.furman
2020-09-05 23:57:11ebalsleysetkeywords: + patch
stage: patch review
pull_requests: + pull_request21200
2020-09-05 23:48:46ebalsleysettitle: Add logfile() when debug is True -> Debug logging when adding a TarFile object
2020-09-05 23:48:02ebalsleycreate