[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 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.

--
components: Library (Lib)
messages: 376448
nosy: ebalsley
priority: normal
severity: normal
status: open
title: Add logfile() when debug is True
type: enhancement
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue41728>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue41728>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue41728>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com