Skip to content

Commit

Permalink
Merge pull request #1729 from dnwick/master
Browse files Browse the repository at this point in the history
Add debug logs
  • Loading branch information
AnuGayan authored Jun 1, 2021
2 parents a66c41a + 124b0be commit d366e24
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,24 @@ public void run() {
log.warn("Thread interrupted. Error when trying to retrieve queued values." + e.getMessage());
}
if (null != queuedCudStreamProcessor) {
if (log.isDebugEnabled()) {
log.debug("Current queue size is = " + cudStreamProcessorQueue.size());
}
int i = 0;
while (true) {
i++;
try {
ComplexEventChunk complexEventChunk = new ComplexEventChunk();
complexEventChunk.add(queuedCudStreamProcessor.getStreamEvent());
if (log.isDebugEnabled()) {
log.debug("Starting processing for duration " + queuedCudStreamProcessor.getDuration());
}
queuedCudStreamProcessor.getCudStreamProcessor().
process(complexEventChunk);
complexEventChunk.clear();
if (log.isDebugEnabled()) {
log.debug("End processing for duration " + queuedCudStreamProcessor.getDuration());
}
break;
} catch (Exception e) {
if (e.getCause() instanceof SQLException) {
Expand Down

0 comments on commit d366e24

Please sign in to comment.