def METHOD_NAME(digest, fileName):
    """
    Computes sha512sum() optionally logging status.
    For internal use only.
    Return 1 on success and 0 on failure.
    """
    rc = sha512sum(digest, fileName)
    logging.debug("SHA512 (%s) = %s", fileName, 'ok' if rc else 'fail')
    return int(rc)