Change registering unsafely without email logging level to info (#4425)

* Change registering unsafely without email logging level to info

* update test with new behavior
This commit is contained in:
Erica Portnoy 2017-03-27 14:47:14 -07:00 committed by GitHub
parent 1c51ae2588
commit e9608945c3
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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):