'Ensure logger: debug was removed.'

@patch('homeassistant.util.yaml._LOGGER.error')
def test_bad_logger_value(self, mock_error):

    yaml.clear_secret_cache()
    load_yaml(self._secret_path, 'logger:    info\npw:    abc')
    load_yaml(self._yaml_path, 'api_password:    !secret    pw')
    assert (mock_error.call_count == 1), 'Expected    an    error    about    logger:    value'
