diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-26 11:23:30 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-27 06:59:27 -0400 |
commit | 3c54d8407173fc9c06577fc85950422387f412df (patch) | |
tree | 9686ad754bf438ba969ccdc91f0a80f2e5b53947 /coverage/control.py | |
parent | ecb9039daac71f6cf7f83ea3046659ac924188d4 (diff) | |
download | python-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.py | 6 |
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. |