def get_console_logs_url(url):
    """Return a section for console logs, or the empty string.

    This populates the named argument `{console_section}`
    inside the formatted string that `build_details` returns.
    """
    if not url:
        return ''
    return """\n
[View console log messages]({console_logs_url})""".format(console_logs_url=url)