Skip to content

Commit

Permalink
chore: add debug logger
Browse files Browse the repository at this point in the history
Signed-off-by: ap891843 <aman.prashant@broadcom.com>
  • Loading branch information
ap891843 committed Aug 30, 2024
1 parent 3e4e9d2 commit 2218d9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void logTiming() {
}

public void logTiming(BenchmarkSession benchmarkSession) {
LOG.debug("---- Benchmark for uri : {}", benchmarkSession.attr("uri"));
Collection<Measurement> measurements = benchmarkSession
.getMeasurements();
measurements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private void analyzeDocumentWithCopybooks(String uri, String text) {
try {
CopybookProcessingMode copybookProcessingMode = CopybookProcessingMode.getCopybookProcessingMode(uri, CopybookProcessingMode.ENABLED);
AnalysisConfig config = configurationService.getConfig(uri, copybookProcessingMode);
ThreadInterruptionUtil.checkThreadInterrupted();
AnalysisResult result = engine.analyze(uri, text, config, documentService.get(uri).getLanguageId());
documentService.processAnalysisResult(uri, result, text);
ThreadInterruptionUtil.checkThreadInterrupted();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public AnalysisConfig getConfig(String scopeURI, CopybookProcessingMode mode) {
}
return config;
} catch (InterruptedException e) {
LOG.error("Issue while resolving analysis configuration", e);
LOG.error("Issue while resolving analysis configuration for {}", scopeURI, e);
Thread.currentThread().interrupt();
} catch (ExecutionException e) {
LOG.error("Issue while resolving analysis configuration", e);
LOG.error("Issue while resolving analysis configuration for {}", scopeURI, e);
}
return AnalysisConfig.defaultConfig(mode);
}
Expand Down

0 comments on commit 2218d9e

Please sign in to comment.