Add logging to NetworkManager init
This commit is contained in:
parent
fa01bfbbad
commit
9428ee6207
@ -17,6 +17,8 @@
|
||||
|
||||
"""Our own QNetworkAccessManager."""
|
||||
|
||||
import logging
|
||||
|
||||
from PyQt5.QtCore import pyqtSlot
|
||||
from PyQt5.QtNetwork import QNetworkAccessManager
|
||||
|
||||
@ -37,6 +39,7 @@ class NetworkManager(QNetworkAccessManager):
|
||||
"""
|
||||
|
||||
def __init__(self, cookiejar=None, parent=None):
|
||||
logging.debug("Initializing NetworkManager")
|
||||
super().__init__(parent)
|
||||
self._requests = {}
|
||||
self._scheme_handlers = {
|
||||
@ -48,6 +51,7 @@ class NetworkManager(QNetworkAccessManager):
|
||||
self.authenticationRequired.connect(self.on_authentication_required)
|
||||
self.proxyAuthenticationRequired.connect(
|
||||
self.on_proxy_authentication_required)
|
||||
logging.debug("NetworkManager init done")
|
||||
|
||||
def _fill_authenticator(self, authenticator, answer):
|
||||
"""Fill a given QAuthenticator object with an answer."""
|
||||
|
Loading…
Reference in New Issue
Block a user