<commit_before># -*- coding: utf-8 -*-


# 密钥
SECRET = None

# 每个uri对应的最多的client数
# MAX_POOL_SIZE = 50

# 最多可以有多少个uri
# MAX_URI_COUNT = 50


LOG_FORMAT = '\n'.join((
    '/' + '-' * 80,
    '[%(levelname)s][%(asctime)s][%(process)d:%(thread)d][%(filename)s:%(lineno)d %(funcName)s]:',
    '%(message)s',
    '-' * 80 + '/',
))

LOGGING = {
    'version': 1,
    'disable_existing_loggers': True,

    'formatters': {
        'standard': {
            'format': LOG_FORMAT,
        },
    },

    'handlers': {
        'flylog': {
            'level': 'ERROR',
            'class': 'flylog.LogHandler',
            'formatter': 'standard',
            'source': 'dbpost',
        },
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'standard',
        },
    },

    'loggers': {
        'dbpost': {
            'handlers': ['console', 'flylog'],
            'level': 'DEBUG',
            'propagate': False
        },
    }
}<commit_msg>修改默认日志级别<commit_after># -*- coding: utf-8 -*-


# 密钥
SECRET = None

# 每个uri对应的最多的client数
# MAX_POOL_SIZE = 50

# 最多可以有多少个uri
# MAX_URI_COUNT = 50


LOG_FORMAT = '\n'.join((
    '/' + '-' * 80,
    '[%(levelname)s][%(asctime)s][%(process)d:%(thread)d][%(filename)s:%(lineno)d %(funcName)s]:',
    '%(message)s',
    '-' * 80 + '/',
))

LOGGING = {
    'version': 1,
    'disable_existing_loggers': True,

    'formatters': {
        'standard': {
            'format': LOG_FORMAT,
        },
    },

    'handlers': {
        'flylog': {
            'level': 'ERROR',
            'class': 'flylog.LogHandler',
            'formatter': 'standard',
            'source': 'dbpost',
        },
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'standard',
        },
    },

    'loggers': {
        'dbpost': {
            'handlers': ['console', 'flylog'],
            'level': 'ERROR',
            'propagate': False
        },
    }
}
{'fraction_non_alphanumeric': 0.2064516129032258, 'fraction_numerical': 0.009925558312655087, 'mean_word_length': 1.8195804195804195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7425137', 'n_tokens_mistral': 762, 'n_tokens_neox': 740, 'n_words': 108}