def METHOD_NAME(msg, name='info'):
    """Utility function used to print debug statements from PySide2 Socket
    calls A bit of a cludge.
    Args:
        msg (str): Message to print or log to user
        name (str): info wran, debug, etc.  Defaults to 'info'.
    """
    if 0:
        # This just gives the qt main loop traceback. Not useful.
        callers = []
        for i in range(1, 20):
            try:
                stack = inspect.stack()[i]
                callers += [f'{stack.function}[{stack.lineno}]']
            except Exception as e:  # pylint: disable=broad-except
                print("Exception during do_debug exception handling: " +
                      e.__repr__())
        callers = reversed(callers)
        callers = '\n'.join(callers)
        msg = callers + "\n" + str(msg) + '\n'
    getattr(logger, name)(msg)