mirror of
https://github.com/certbot/certbot.git
synced 2026-06-13 18:50:20 -04:00
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:
parent
1c51ae2588
commit
e9608945c3
2 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue