Skip to content

Commit

Permalink
Logging improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jul 26, 2023
1 parent 8b7e3d4 commit 077ed5d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class TaskPollingMonitor implements TaskMonitor {
*/
@Override
TaskMonitor start() {
log.trace ">>> barrier register (monitor: ${this.name})"
log.debug ">>> barrier register (monitor: ${this.name})"
session.barrier.register(this)

this.taskCompleteLock = new ReentrantLock()
Expand All @@ -292,8 +292,11 @@ class TaskPollingMonitor implements TaskMonitor {
try {
pollLoop()
}
catch (Throwable e) {
log.debug "Unexpected error in tasks monitor pool loop", e
}
finally {
log.trace "<<< barrier arrives (monitor: ${this.name})"
log.debug "<<< barrier arrives (monitor: ${this.name}) - terminating tasks monitor poll loop"
session.barrier.arrive(this)
}
}
Expand Down Expand Up @@ -434,7 +437,7 @@ class TaskPollingMonitor implements TaskMonitor {
try {
def pending = runningQueue.size()
if( !pending ) {
log.debug "No more task to compute -- ${session.dumpNetworkStatus() ?: 'Execution may be stalled'}"
log.debug "!! executor $name > No more task to compute -- ${session.dumpNetworkStatus() ?: 'Execution may be stalled'}"
return
}

Expand Down

0 comments on commit 077ed5d

Please sign in to comment.