def __set_log_level(self):
        log_level = self.__config.log_level.lower()
        ll_map = {'debug': logging.DEBUG, 'info': logging.INFO,
                    'warning': logging.WARNING, 'error': logging.ERROR}
        l_level = ll_map.get(log_level, None)
        if l_level == None:
            logger.error('Unknown log level "%s"'%log_level)

        logger.setLevel(l_level)
        nimbus_logger.setLevel(l_level)
예제 #2
0
    def __set_log_level(self):
        log_level = self.__config.log_level.lower()
        ll_map = {
            'debug': logging.DEBUG,
            'info': logging.INFO,
            'warning': logging.WARNING,
            'error': logging.ERROR
        }
        l_level = ll_map.get(log_level, None)
        if l_level == None:
            logger.error('Unknown log level "%s"' % log_level)

        logger.setLevel(l_level)
        nimbus_logger.setLevel(l_level)
예제 #3
0
import logging
import shutil
import threading
import json
import random
import subprocess
import signal
import string
import hashlib
import traceback
from datetime import datetime
from Queue import Queue
from nimbus_client.core.logger import logger
from nimbus_client.core.fri.fri_base import FabnetPacketResponse

logger.setLevel(logging.INFO)
from nimbus_client.core import constants
constants.MAX_DATA_BLOCK_SIZE = 100000
constants.READ_TRY_COUNT = 10
constants.READ_SLEEP_TIME = 0.2
constants.FG_ERROR_TIMEOUT = 0.2
constants.JOURNAL_SYNC_CHECK_TIME = 1

from nimbus_client.core.nibbler import Nibbler
from nimbus_client.core.data_block import DataBlock
from nimbus_client.core.transactions_manager import Transaction
from nimbus_client.core.security_manager import FileBasedSecurityManager
from nimbus_client.core.exceptions import *
from util_init_test_env import *
from util_mocked_id_client import MockedFriClient, FAIL, OK
예제 #4
0
import logging
import shutil
import threading
import json
import random
import subprocess
import signal
import string
import hashlib
import traceback
from datetime import datetime
from Queue import Queue
from nimbus_client.core.logger import logger
from nimbus_client.core.fri.fri_base import FabnetPacketResponse

logger.setLevel(logging.INFO)
from nimbus_client.core import constants

constants.MAX_DATA_BLOCK_SIZE = 100000
constants.READ_TRY_COUNT = 10
constants.READ_SLEEP_TIME = 0.2
constants.FG_ERROR_TIMEOUT = 0.2
constants.JOURNAL_SYNC_CHECK_TIME = 1

from nimbus_client.core.nibbler import Nibbler
from nimbus_client.core.data_block import DataBlock
from nimbus_client.core.transactions_manager import Transaction
from nimbus_client.core.security_manager import FileBasedSecurityManager
from nimbus_client.core.exceptions import *
from util_init_test_env import *
from util_mocked_id_client import MockedFriClient, FAIL, OK