Commit ffcdf197 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Admin node supports live debugger.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2236 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e11618bf
...@@ -27,6 +27,7 @@ from neo.connector import getConnectorHandler ...@@ -27,6 +27,7 @@ from neo.connector import getConnectorHandler
from neo.bootstrap import BootstrapManager from neo.bootstrap import BootstrapManager
from neo.pt import PartitionTable from neo.pt import PartitionTable
from neo.protocol import NodeTypes, NodeStates, Packets, Errors from neo.protocol import NodeTypes, NodeStates, Packets, Errors
from neo.live_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"""
...@@ -75,6 +76,13 @@ class Application(object): ...@@ -75,6 +76,13 @@ class Application(object):
self.cluster_state = None self.cluster_state = None
self.master_conn = None self.master_conn = None
self.master_node = None self.master_node = None
registerLiveDebugger(on_log=self.log)
def log(self):
self.em.log()
self.nm.log()
if self.pt is not None:
self.pt.log()
def run(self): def run(self):
"""Make sure that the status is sane and start a loop.""" """Make sure that the status is sane and start a loop."""
......
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