Commit dfc1076f authored by Julien Muchembled's avatar Julien Muchembled

Rename neo.lib.live_debug to neo.lib.debug

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2686 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c4863a33
...@@ -27,7 +27,7 @@ from neo.lib.connector import getConnectorHandler ...@@ -27,7 +27,7 @@ from neo.lib.connector import getConnectorHandler
from neo.lib.bootstrap import BootstrapManager from neo.lib.bootstrap import BootstrapManager
from neo.lib.pt import PartitionTable from neo.lib.pt import PartitionTable
from neo.lib.protocol import NodeTypes, NodeStates, Packets, Errors from neo.lib.protocol import NodeTypes, NodeStates, Packets, Errors
from neo.lib.live_debug import register as registerLiveDebugger from neo.lib.debug import register as registerLiveDebugger
class Dispatcher: class Dispatcher:
"""Dispatcher use to redirect master request to handler""" """Dispatcher use to redirect master request to handler"""
......
...@@ -46,7 +46,7 @@ from neo.client.mq import MQ ...@@ -46,7 +46,7 @@ from neo.client.mq import MQ
from neo.client.pool import ConnectionPool from neo.client.pool import ConnectionPool
from neo.lib.util import u64, parseMasterList from neo.lib.util import u64, parseMasterList
from neo.lib.profiling import profiler_decorator, PROFILING_ENABLED from neo.lib.profiling import profiler_decorator, PROFILING_ENABLED
from neo.lib.live_debug import register as registerLiveDebugger from neo.lib.debug import register as registerLiveDebugger
from neo.client.mq_index import RevisionIndex from neo.client.mq_index import RevisionIndex
from neo.client.container import ThreadContainer, TransactionContainer from neo.client.container import ThreadContainer, TransactionContainer
......
...@@ -29,7 +29,7 @@ import neo ...@@ -29,7 +29,7 @@ import neo
ENABLED = False ENABLED = False
# How to include in python code: # How to include in python code:
# from neo.live_debug import register # from neo.debug import register
# register() # register()
# #
# How to trigger it: # How to trigger it:
......
...@@ -36,7 +36,7 @@ from neo.master.recovery import RecoveryManager ...@@ -36,7 +36,7 @@ from neo.master.recovery import RecoveryManager
from neo.lib.util import dump from neo.lib.util import dump
from neo.lib.connector import getConnectorHandler from neo.lib.connector import getConnectorHandler
from neo.lib.live_debug import register as registerLiveDebugger from neo.lib.debug import register as registerLiveDebugger
class Application(object): class Application(object):
"""The master node application.""" """The master node application."""
......
...@@ -35,7 +35,7 @@ from neo.lib.pt import PartitionTable ...@@ -35,7 +35,7 @@ from neo.lib.pt import PartitionTable
from neo.lib.util import dump from neo.lib.util import dump
from neo.lib.bootstrap import BootstrapManager from neo.lib.bootstrap import BootstrapManager
from neo.lib.live_debug import register as registerLiveDebugger from neo.lib.debug import register as registerLiveDebugger
class Application(object): class Application(object):
"""The storage node application.""" """The storage node application."""
......
...@@ -26,7 +26,7 @@ import MySQLdb ...@@ -26,7 +26,7 @@ import MySQLdb
import neo import neo
from mock import Mock from mock import Mock
from neo.lib import live_debug, logger, protocol from neo.lib import debug, logger, protocol
from neo.lib.protocol import Packets from neo.lib.protocol import Packets
from neo.lib.util import getAddressType from neo.lib.util import getAddressType
from time import time, gmtime, sleep from time import time, gmtime, sleep
...@@ -44,10 +44,10 @@ IP_VERSION_FORMAT_DICT = { ...@@ -44,10 +44,10 @@ IP_VERSION_FORMAT_DICT = {
ADDRESS_TYPE = socket.AF_INET ADDRESS_TYPE = socket.AF_INET
live_debug.ENABLED = True debug.ENABLED = True
live_debug.register() debug.register()
# prevent "signal only works in main thread" errors in subprocesses # prevent "signal only works in main thread" errors in subprocesses
live_debug.ENABLED = False debug.ENABLED = False
logger.PACKET_LOGGER.enable(True) logger.PACKET_LOGGER.enable(True)
def buildUrlFromString(address): def buildUrlFromString(address):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment