summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-08-26 11:23:30 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-08-27 06:59:27 -0400
commit3c54d8407173fc9c06577fc85950422387f412df (patch)
tree9686ad754bf438ba969ccdc91f0a80f2e5b53947 /coverage/control.py
parentecb9039daac71f6cf7f83ea3046659ac924188d4 (diff)
downloadpython-coveragepy-git-3c54d8407173fc9c06577fc85950422387f412df.tar.gz
Create the debug file more centrally
This helps ensure that all debugging output goes into a single file.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 2ee2c933..2130de39 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -197,12 +197,6 @@ class Coverage(object):
# Create and configure the debugging controller. COVERAGE_DEBUG_FILE
# is an environment variable, the name of a file to append debug logs
# to.
- if self._debug_file is None:
- debug_file_name = os.environ.get("COVERAGE_DEBUG_FILE")
- if debug_file_name:
- self._debug_file = open(debug_file_name, "a")
- else:
- self._debug_file = sys.stderr
self._debug = DebugControl(self.config.debug, self._debug_file)
# _exclude_re is a dict that maps exclusion list names to compiled regexes.