Please tell me the correct way to use zipfile.debug

I need to write a python program to extract a ZIP file. For that I am using ZipFile module of python.
I am able to extract it successfully but I am not getting any logs on the console that what files are being extracted.
I went throught the documentation and found Zip.File.debug flag. I am trying to use it but not getting any output on console while running the script.
Below the code that I am trying with. Please tell me the correct way to use zipfile.debug .

import zipfile
with zipfile.ZipFile(file_name) as zf:
    zf.debug = 3
    zf.extractall(path='TestData')