From f1e8904516467accca72116915eb6b0ef10abd03 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 16 Mar 2018 14:27:07 +0200 Subject: [PATCH] dvc: print warning when corrupted cache is detected Fixes #549 Signed-off-by: Ruslan Kuprieiev --- dvc/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/output.py b/dvc/output.py index e24c0ed2c..a568558eb 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -165,7 +165,7 @@ class Output(Dependency): def _changed_cache(self, cache): md5 = self.project.state.update(cache) if md5 != self.project.cache.path_to_md5(cache): - self.project.logger.debug('Corrupted cache file {}'.format(cache)) + self.project.logger.warn('Corrupted cache file {}'.format(os.path.relpath(cache))) os.unlink(cache) return True