[Reproducible-commits] [diffoscope] 07/09: Log exceptions raised while computing diffs as errors
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Sep 18 10:54:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit 7ca61293bf1ac4adc5a941a5882a83dfa400b3a7
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Sep 18 12:19:58 2015 +0200
Log exceptions raised while computing diffs as errors
We were previously logging them at the debug level, which is not appropriate
at all for something that bad.
---
diffoscope/difference.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index 4cb6d66..828f83e 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -180,11 +180,11 @@ class ExThread(Thread):
return
else:
except_type, except_class, tb = ex_info
- logger.debug('Exception: %s',
+ logger.error('Exception: %s',
traceback.format_exception_only(except_type, except_class)[0].strip())
- logger.debug('Traceback:')
+ logger.error('Traceback:')
for line in traceback.format_list(tb):
- logger.debug(line[:-1])
+ logger.error(line[:-1])
raise except_type(except_class)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list