import logging


def _send_localhost_and_testing(to_address, subject, html_body=None,
                                text_body=None, mandrill_template=None,
                                mandrill_template_content=None,
                                cc_address=None, bcc_address=None, **kwargs):
    """Print the email in the logs so we can see it."""
    logging.info(html_body)
    logging.info(text_body)
    logging.info(mandrill_template)
    logging.info(mandrill_template_content)
    logging.info(kwargs)

    # We often have to test inviting people on our localhosts. Make this
    # easier, esp. re: different ports for webpack and webserver.
    link = (
        mandrill_template_content.get('link', None)
        if mandrill_template_content else None
    )
    if link:
        link = link.replace('10080', '3000')
        link = link.replace('8080', '8888')
    logging.info("""

vvv Invitation/Reset Link vvv

{}

^^^^^^^^^^^^^^^^^^^^^^^

""".format(link))

    return True