Mercurial > hg-stable
changeset 39065:713126389ef2
mail: fix debug print, which appears to have been broken for a long time
I noticed this when trying to debug very mysterious dummysmtpd
problems. It turns out you can set self.debuglevel to a number greater
than 0 and have smtplib print helpful debug output, but this output on
our side of things was broken.
Differential Revision: https://phab.mercurial-scm.org/D4218
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 09 Aug 2018 17:44:36 -0400 |
parents | 8919cc4f63b4 |
children | 78f1899e4202 |
files | mercurial/mail.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/mail.py Mon Jul 16 18:17:44 2018 -0400 +++ b/mercurial/mail.py Thu Aug 09 17:44:36 2018 -0400 @@ -73,7 +73,7 @@ def _get_socket(self, host, port, timeout): if self.debuglevel > 0: - self._ui.debug('connect: %r\n' % (host, port)) + self._ui.debug('connect: %r\n' % ((host, port),)) new_socket = socket.create_connection((host, port), timeout) new_socket = sslutil.wrapsocket(new_socket, self.keyfile, self.certfile,