mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user