diff --git a/data/other/servers.xml b/data/other/servers.xml index f8bcf7161..4a2cf19f7 100644 --- a/data/other/servers.xml +++ b/data/other/servers.xml @@ -374,6 +374,6 @@ diff --git a/src/common/connection.py b/src/common/connection.py index d70dd43ff..8c1cc1608 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -436,7 +436,6 @@ class Connection(ConnectionHandlers): fpr_good = self._check_fingerprint(con, con_type) if fpr_good == False: - log.error(_("Fingerprint mismatch for %s: Got %s, expected %s"), hostname, got, expected) self.disconnect(on_purpose = True) self.dispatch('STATUS', 'offline') self.dispatch('CONNECTION_LOST', @@ -495,6 +494,9 @@ class Connection(ConnectionHandlers): else: log.debug("Connection to %s doesn't seem to have a fingerprint:", hostname, exc_info=True) + if fpr_good == False: + log.error(_("Fingerprint mismatch for %s: Got %s, expected %s"), hostname, got, expected) + return fpr_good def _register_handlers(self, con, con_type): diff --git a/src/common/xmpp/transports_nb.py b/src/common/xmpp/transports_nb.py index 77d4ad200..66da4b57f 100644 --- a/src/common/xmpp/transports_nb.py +++ b/src/common/xmpp/transports_nb.py @@ -41,6 +41,8 @@ try: USE_PYOPENSSL = True log.info("PyOpenSSL loaded") except ImportError: + log.debug("Import of PyOpenSSL failed:", exc_info=True) + # FIXME: Remove these prints before release, replace with a warning dialog. print >> sys.stderr, "=" * 79 print >> sys.stderr, "PyOpenSSL not found, falling back to Python builtin SSL objects (insecure)."