async def METHOD_NAME(rest_api, tmp_path):
    """
    Test whether the API returns the default response when no log files are found.
    """
    module = 'gui'
    with patch('tribler.core.components.restapi.rest.debug_endpoint.get_root_state_directory',
               new=lambda: tmp_path / 'nondir'):
        json_response = await do_request(rest_api, f'debug/log?process={module}&max_lines=', expected_code=200)
    assert not json_response['content']
    assert json_response['max_lines'] == 0