Mercurial > hg > tc-symbol-server
diff agent/src/jetbrains/buildServer/symbols/SymbolsIndexer.java @ 18:d1c5ce19d0f7
added warning in case source info was not found in pdb
author | Evgeniy.Koshkin |
---|---|
date | Thu, 01 Aug 2013 18:34:06 +0400 |
parents | 5856cab1ca05 |
children | 10cb71666d5e |
line wrap: on
line diff
--- a/agent/src/jetbrains/buildServer/symbols/SymbolsIndexer.java Thu Aug 01 17:22:53 2013 +0400 +++ b/agent/src/jetbrains/buildServer/symbols/SymbolsIndexer.java Thu Aug 01 18:34:06 2013 +0400 @@ -77,8 +77,9 @@ public void afterCollectingFiles(@NotNull List<ArtifactsCollection> artifacts) { super.afterCollectingFiles(artifacts); if(myBuild == null || mySymbolsToProcess == null) return; + final BuildProgressLogger buildLogger = myBuild.getBuildLogger(); if(myBuild.getBuildFeaturesOfType(SymbolsConstants.BUILD_FEATURE_TYPE).isEmpty()){ - myBuild.getBuildLogger().warning(SymbolsConstants.BUILD_FEATURE_TYPE + " build feature disabled. No indexing performed."); + buildLogger.warning(SymbolsConstants.BUILD_FEATURE_TYPE + " build feature disabled. No indexing performed."); LOG.debug(SymbolsConstants.BUILD_FEATURE_TYPE + " build feature disabled. No indexing performed."); return; } @@ -87,13 +88,13 @@ final PdbFilePatcher pdbFilePatcher = new PdbFilePatcher(myBuild.getBuildTempDirectory(), new SrcSrvStreamProvider(myBuild.getBuildId(), myBuild.getCheckoutDirectory())); for(File pdbFile : pdbFiles){ try { - myBuild.getBuildLogger().message("Indexing sources appeared in file " + pdbFile.getAbsolutePath()); - pdbFilePatcher.patch(pdbFile); + buildLogger.message("Indexing sources appeared in file " + pdbFile.getAbsolutePath()); + pdbFilePatcher.patch(pdbFile, buildLogger); mySymbolsToProcess.add(pdbFile); } catch (Throwable e) { LOG.error("Error occurred while patching symbols file " + pdbFile, e); - myBuild.getBuildLogger().error("Error occurred while patching symbols file " + pdbFile); - myBuild.getBuildLogger().exception(e); + buildLogger.error("Error occurred while patching symbols file " + pdbFile); + buildLogger.exception(e); } } }