From e3b97cb3a70494c1a578a54830aaca679842483d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Wed, 26 Jan 2022 16:48:54 +0100 Subject: [PATCH] ignore: move debug statetement to the proper location --- dvc/repo/scm_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/scm_context.py b/dvc/repo/scm_context.py index 115da03ab..b3ef4a959 100644 --- a/dvc/repo/scm_context.py +++ b/dvc/repo/scm_context.py @@ -75,13 +75,13 @@ class SCMContext: from dvc.scm import SCMError - logger.debug("Adding '%s' to gitignore file.", path) try: gitignore_file = self.scm.ignore(path) except FileNotInRepoError as exc: raise SCMError(str(exc)) if gitignore_file: + logger.debug("Added '%s' to gitignore file.", path) self.track_file(relpath(gitignore_file)) return self.ignored_paths.append(path)