mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
Only set --stacktrace --info if verbose logging is enabled (#1557)
This is a quality-of-life improvement; make our build logs more easy to read through for the default case. If we need more information, we can click on the "Enable debug logging" checkbox when re-running a job, which then populates the `runner.debug` context variable.
This commit is contained in:
@@ -29,8 +29,7 @@ fetchDepth: Int?
|
||||
|
||||
fixed gradleArgs =
|
||||
new Listing {
|
||||
"--info"
|
||||
"--stacktrace"
|
||||
"$DEBUG_ARGS"
|
||||
"--no-daemon"
|
||||
"-DpklMultiJdkTesting=true"
|
||||
when (isRelease) {
|
||||
@@ -45,6 +44,9 @@ fixed job {
|
||||
when (os == "windows") {
|
||||
["JAVA_HOME"] = "/jdk"
|
||||
}
|
||||
["DEBUG_ARGS"] =
|
||||
// language=GithubExpressionLanguage
|
||||
"${{ case(runner.debug == '1', '--info --stacktrace', '') }}"
|
||||
}
|
||||
when (os == "macOS") {
|
||||
`if` =
|
||||
|
||||
Reference in New Issue
Block a user