Improve some init logging
This commit is contained in:
parent
24f7b1f369
commit
f07c704367
|
|
@ -485,7 +485,9 @@ class Application(QApplication):
|
|||
self._last_focus_object = None
|
||||
|
||||
qt_args = configinit.qt_args(args)
|
||||
log.init.debug("Qt arguments: {}, based on {}".format(qt_args, args))
|
||||
log.init.debug("Commandline args: {}".format(sys.argv[1:]))
|
||||
log.init.debug("Parsed: {}".format(args))
|
||||
log.init.debug("Qt arguments: {}".format(qt_args[1:]))
|
||||
super().__init__(qt_args)
|
||||
|
||||
objects.args = args
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ def _is_secure_cipher(cipher):
|
|||
def init():
|
||||
"""Disable insecure SSL ciphers on old Qt versions."""
|
||||
default_ciphers = QSslSocket.defaultCiphers()
|
||||
log.init.debug("Default Qt ciphers: {}".format(
|
||||
log.init.vdebug("Default Qt ciphers: {}".format(
|
||||
', '.join(c.name() for c in default_ciphers)))
|
||||
|
||||
good_ciphers = []
|
||||
|
|
@ -116,9 +116,10 @@ def init():
|
|||
else:
|
||||
bad_ciphers.append(cipher)
|
||||
|
||||
log.init.debug("Disabling bad ciphers: {}".format(
|
||||
', '.join(c.name() for c in bad_ciphers)))
|
||||
QSslSocket.setDefaultCiphers(good_ciphers)
|
||||
if bad_ciphers:
|
||||
log.init.debug("Disabling bad ciphers: {}".format(
|
||||
', '.join(c.name() for c in bad_ciphers)))
|
||||
QSslSocket.setDefaultCiphers(good_ciphers)
|
||||
|
||||
|
||||
_SavedErrorsType = typing.MutableMapping[urlutils.HostTupleType,
|
||||
|
|
|
|||
Loading…
Reference in New Issue