Commit 1621aa9c authored by mathieui's avatar mathieui

Add a “debug” attribute to Core

parent 61bf29db
......@@ -116,6 +116,7 @@ class Core(object):
self.xmpp.core = self
roster.set_node(self.xmpp.client_roster)
self.paused = False
self.debug = False
self.remote_fifo = None
# a unique buffer used to store global informations
# that are displayed in almost all tabs, in an
......
......@@ -32,6 +32,8 @@ def main():
logging.basicConfig(level=logging.CRITICAL)
cocore = singleton.Singleton(core.Core)
signal.signal(signal.SIGHUP, cocore.sighup_handler) # ignore ctrl-c
if options.debug:
cocore.debug = True
cocore.start()
try:
if not cocore.xmpp.start(): # Connect to remote server
......
......@@ -122,7 +122,6 @@ class Tab(object):
@property
def nb(self):
log.debug("COUCOU TABS")
for index, tab in enumerate(self.core.tabs):
log.debug("%s", tab.__class__)
if tab == self:
......
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