src/dirbs/cli/classify.py
def _warn_about_disabled_safety_check(safety_check, logger):
    """Function to print out warning about disabling safety check in production.

    :param safety_check: safety check param
    :param logger: dirbs logger instance
    """
    if not safety_check:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --no-safety-check option passed to dirbs-classify')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. The safety check is in place to prevent a misconfigured condition from classifying')
        logger.warning('   a large proportion of the subscriber population. In the worst case, a list could')
        logger.warning('   then be generated and a large number of subscribers would be notified or blacklisted.')
        logger.warning('   Even in the best case where the error is found before list generation, this generates')
        logger.warning('   bloat in the classification_state table that must be pruned to avoid a performance impact')
        logger.warning('   in other parts of DIRBS Core.')
        logger.warning('')
Function to print out warning about disabling safety check in production.

    :param safety_check: safety check param
    :param logger: dirbs logger instance
    
Function to print out warning about disabling safety check in production.
Function to print out warning about disabling safety check in production .
def _warn_about_disabled_safety_check(safety_check, logger):
    if not safety_check:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --no-safety-check option passed to dirbs-classify')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. The safety check is in place to prevent a misconfigured condition from classifying')
        logger.warning('   a large proportion of the subscriber population. In the worst case, a list could')
        logger.warning('   then be generated and a large number of subscribers would be notified or blacklisted.')
        logger.warning('   Even in the best case where the error is found before list generation, this generates')
        logger.warning('   bloat in the classification_state table that must be pruned to avoid a performance impact')
        logger.warning('   in other parts of DIRBS Core.')
        logger.warning('')
def _warn_about_disabled_safety_check ( safety_check , logger ) : if not safety_check : logger . warning ( '*************************************************************************' ) logger . warning ( 'WARNING: --no-safety-check option passed to dirbs-classify' ) logger . warning ( '*************************************************************************' ) logger . warning ( '' ) logger . warning ( 'This should not be done in a production DIRBS deployment for the following reasons:' ) logger . warning ( '' ) logger . warning ( '1. The safety check is in place to prevent a misconfigured condition from classifying' ) logger . warning ( '   a large proportion of the subscriber population. In the worst case, a list could' ) logger . warning ( '   then be generated and a large number of subscribers would be notified or blacklisted.' ) logger . warning ( '   Even in the best case where the error is found before list generation, this generates' ) logger . warning ( '   bloat in the classification_state table that must be pruned to avoid a performance impact' ) logger . warning ( '   in other parts of DIRBS Core.' ) logger . warning ( '' )
Function to print out warning about disabling safety check in production.
Function to print out warning about disabling safety check in production .
"""Function to print out warning about disabling safety check in production.

    :param safety_check: safety check param
    :param logger: dirbs logger instance
    """
safety_check
safety check param
safety check param
logger
dirbs logger instance
dirbs logger instance