add MMGEN_DEBUG_DAEMON environment var

This commit is contained in:
The MMGen Project 2023-07-01 15:51:37 +00:00
commit 46befcb79b
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 0 deletions

View file

@ -150,6 +150,7 @@ class Config(Lockable):
# debug
debug = False
debug_daemon = False
debug_opts = False
debug_rpc = False
debug_addrlist = False
@ -294,6 +295,7 @@ class Config(Lockable):
'MMGEN_BOGUS_SEND',
'MMGEN_BOGUS_UNSPENT_DATA',
'MMGEN_DEBUG',
'MMGEN_DEBUG_DAEMON',
'MMGEN_DEBUG_OPTS',
'MMGEN_DEBUG_RPC',
'MMGEN_DEBUG_ADDRLIST',

View file

@ -61,6 +61,7 @@ class Daemon(Lockable):
self.opt = ClassOpts(self,opts)
self.flag = ClassFlags(self,flags)
self.debug = self.debug or cfg.debug_daemon
def exec_cmd_thread(self,cmd):
import threading