Skip to content

Commit

Permalink
Add scripts logging for troubleshooting
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Sep 9, 2023
1 parent 23c4ec1 commit c056a74
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,14 @@ class ScriptRunner {
session.start()
try {
// parse the script
parseScript(scriptFile, entryName)
// run the code
run()
try {
parseScript(scriptFile, entryName)
// run the code
run()
}
finally {
log.debug "Parsed script files:${scriptFiles0()}"
}
// await completion
await()
// shutdown session
Expand All @@ -151,6 +156,13 @@ class ScriptRunner {
return result
}

protected String scriptFiles0() {
def result = ''
for( Map.Entry<String,Path> it : ScriptMeta.allScriptNames() )
result += "\n ${it.key}: ${it.value.toUriString()}"
return result
}

/**
* Test the name specified by the {@code methodName}
*
Expand Down

0 comments on commit c056a74

Please sign in to comment.