2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 01:53:28 +00:00

Suppress libarchive logging

libarchive ffi goes crazy logging at *import* time.  Pre-empt
use of the logging with a null handler prior to import.
This commit is contained in:
Jarrod Johnson 2020-02-21 08:46:42 -05:00
parent 737e7a440f
commit 4b3541e21d

View File

@ -1,3 +1,5 @@
import logging
logging.getLogger('libarchive').addHandler(logging.NullHandler())
import libarchive
import hashlib
import sys