From e9608945c3622540ea0e0dbfb79fd62b7e5d4b47 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 27 Mar 2017 14:47:14 -0700 Subject: [PATCH] Change registering unsafely without email logging level to info (#4425) * Change registering unsafely without email logging level to info * update test with new behavior --- certbot/client.py | 2 +- certbot/tests/client_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot/client.py b/certbot/client.py index bd1971371..f6de26e3d 100644 --- a/certbot/client.py +++ b/certbot/client.py @@ -118,7 +118,7 @@ def register(config, account_storage, tos_cb=None): logger.warning(msg) raise errors.Error(msg) if not config.dry_run: - logger.warning("Registering without email!") + logger.info("Registering without email!") # Each new registration shall use a fresh new key key = jose.JWKRSA(key=jose.ComparableRSAKey( diff --git a/certbot/tests/client_test.py b/certbot/tests/client_test.py index c61f1fa4e..8b72e1df7 100644 --- a/certbot/tests/client_test.py +++ b/certbot/tests/client_test.py @@ -102,7 +102,7 @@ class RegisterTest(unittest.TestCase): self.config.register_unsafely_without_email = True self.config.dry_run = False self._call() - mock_logger.warning.assert_called_once_with(mock.ANY) + mock_logger.info.assert_called_once_with(mock.ANY) self.assertTrue(mock_handle.called) def test_unsupported_error(self):