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):