use of org.sonar.api.utils.log.Profiler in project sonarqube by SonarSource.
the class ProjectBranchesProvider method provide.
@Bean("ProjectBranches")
public ProjectBranches provide(@Nullable ProjectBranchesLoader loader, ScannerProperties scannerProperties) {
if (loader == null) {
return new ProjectBranches(Collections.emptyList());
}
Profiler profiler = Profiler.create(LOG).startInfo(LOG_MSG);
ProjectBranches branches = loader.load(scannerProperties.getProjectKey());
profiler.stopInfo();
return branches;
}
Aggregations