From 27b2a5cd6d53b7cbda4e4b54ee50e2bf78cf60dc Mon Sep 17 00:00:00 2001 From: Yury Date: Tue, 2 Aug 2022 17:42:56 +0200 Subject: [PATCH] revert logger to lazy formatting --- dvc/output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/output.py b/dvc/output.py index 27f071323..cc0ca349f 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -715,7 +715,8 @@ class Output: return if os.path.isdir(self.fs_path): - logger.debug(f"directory '{self}' cannot be used as metrics.") + msg = "directory '%s' cannot be used as %s." + logger.debug(msg, str(self), "metrics") return if not istextfile(self.fs_path, self.fs):