summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-22 09:08:09 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-22 10:58:53 -0500
commit5f65d87b14245d4523bc866a75a16b6c55a7ce70 (patch)
treebd4d404c80baa1c7e6e25e2335ffcee52702ee66 /coverage/control.py
parentc51ac463f07e31c87b20f50bd7e6445e4e4e83a2 (diff)
downloadpython-coveragepy-git-5f65d87b14245d4523bc866a75a16b6c55a7ce70.tar.gz
feat: the debug output file can be specified in the config file. #1319
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/coverage/control.py b/coverage/control.py
index d37c77e3..78e0c70e 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -303,10 +303,8 @@ class Coverage(TConfigurable):
self._inited = True
- # Create and configure the debugging controller. COVERAGE_DEBUG_FILE
- # is an environment variable, the name of a file to append debug logs
- # to.
- self._debug = DebugControl(self.config.debug, self._debug_file)
+ # Create and configure the debugging controller.
+ self._debug = DebugControl(self.config.debug, self._debug_file, self.config.debug_file)
if "multiprocessing" in (self.config.concurrency or ()):
# Multi-processing uses parallel for the subprocesses, so also use