Warning dialog when Add-on's vendored package calls logger

I’ve been getting a Qt warning of:

Qt warning: QObject::disconnect: wildcard call disconnects from destroyed signal of QPushButton::unnamed 

Which is accompanied by a pop-up dialog. Not ideal. Using the debugger, I narrowed it down, and the warning is thrown every time a package I have vendored for my add-on makes a call to the logger. The logger is initialized as follows:

log_console = logging.StreamHandler(sys.stderr)
default_logger = logging.getLogger(__name__)
default_logger.setLevel(logging.DEBUG)
default_logger.addHandler(log_console)

A warning is then thrown for every log, such as:

default_logger.debug("Prefix dict has been built successfully.")

I’ve checked and indeed removing all but logging.getLogger removes the warning, but besides editing the vendored package, is there a remedy for this?

In what screen does this happen? Can you reproduce it with minimal logging setup (without the vendored package)? Is the add-on available on AnkiWeb/GitHub?

As I was working towards a minimal reproducible setup for the bug, I re-vendored the package and I’ve never seen the warning since. Though brief, sorry for the waste of time ;-;