mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common: log when we toggle IO logging, don't edit env in tests!
Tests were failing when in the same thread after a test which set log_all_io=True, because SIGUSR1 seemed to be turning logging *off*. This is due to Python using references not copies for assignment. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
9f044305db
commit
4c891f4661
@@ -81,7 +81,7 @@ class TailableProc(object):
|
||||
def __init__(self, outputDir=None, verbose=True):
|
||||
self.logs = []
|
||||
self.logs_cond = threading.Condition(threading.RLock())
|
||||
self.env = os.environ
|
||||
self.env = os.environ.copy()
|
||||
self.running = False
|
||||
self.proc = None
|
||||
self.outputDir = outputDir
|
||||
|
||||
Reference in New Issue
Block a user