From 32e7753a3829874764ac5d80abffc99a46174122 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Fri, 25 Jan 2013 12:14:17 +0400 Subject: [PATCH] [git] reduce logging noise This is actually a valid situation to request GitRepositoryManager#getRepositoryForFile for non-Git files. Can be used, for instance, in #update() of Git-only actions to check if the action should be visible at all (when it is under Svn, for instance). --- .../git4idea/src/git4idea/repo/GitRepositoryManagerImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/git4idea/src/git4idea/repo/GitRepositoryManagerImpl.java b/plugins/git4idea/src/git4idea/repo/GitRepositoryManagerImpl.java index b3aec771aa04..1d8d3c6c2377 100644 --- a/plugins/git4idea/src/git4idea/repo/GitRepositoryManagerImpl.java +++ b/plugins/git4idea/src/git4idea/repo/GitRepositoryManagerImpl.java @@ -115,9 +115,7 @@ public class GitRepositoryManagerImpl extends AbstractProjectComponent implement final AbstractVcs vcs = vcsRoot.getVcs(); if (!myVcs.equals(vcs)) { if (vcs != null) { - // if null, the file is just not under version control, nothing interesting; - // otherwise log, because Git method is requested not for a Git-controlled file - LOG.info(String.format("getRepositoryForFile returned non-Git (%s) root for file %s", vcs.getDisplayName(), filePath)); + LOG.debug(String.format("getRepositoryForFile returned non-Git (%s) root for file %s", vcs.getDisplayName(), filePath)); } return null; }