diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-24 10:28:44 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-24 10:28:44 -0500 |
commit | 4ddf53a6d962a001782a0838b1b8748041125be4 (patch) | |
tree | fff894b694537d9ada8e0d2a12c24847c28b8cd3 /coverage/control.py | |
parent | c1bfa7352368b63f3a9b30c02f242408d07a7ab2 (diff) | |
download | python-coveragepy-git-4ddf53a6d962a001782a0838b1b8748041125be4.tar.gz |
Make the two forms of debug output more uniform
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/coverage/control.py b/coverage/control.py index 36687fe5..8ae96fcf 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -293,14 +293,18 @@ class Coverage(object): self.omit_match = FnmatchMatcher(self.omit) # The user may want to debug things, show info if desired. + wrote_any = False if self.debug.should('config'): - self.debug.write("Configuration values:") config_info = sorted(self.config.__dict__.items()) - self.debug.write_formatted_info(config_info) + self.debug.write_formatted_info("config", config_info) + wrote_any = True if self.debug.should('sys'): - self.debug.write("Debugging info:") - self.debug.write_formatted_info(self.sysinfo()) + self.debug.write_formatted_info("sys", self.sysinfo()) + wrote_any = True + + if wrote_any: + self.debug.write_formatted_info("end", ()) def _canonical_dir(self, morf): """Return the canonical directory of the module or file `morf`.""" |