Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit: Add debug messages #505

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ async def _select_java_version(
gradle_version_out = subprocess.run( # nosec
["./gradlew", "--version"], capture_output=True, check=True, encoding="utf-8"
).stdout.splitlines()
_LOGGER.debug("Gradle version out: %s", "\n".join(gradle_version_out))
gradle_version_out = [line for line in gradle_version_out if "Gradle" in line]
_LOGGER.debug("Gradle version out filter: %s", "\n".join(gradle_version_out))
gradle_version = gradle_version_out[0].split()[1]
_LOGGER.debug("Gradle version: %s", gradle_version)

minor_gradle_version = ".".join(gradle_version.split(".")[0:2])
_LOGGER.debug("Gradle minor version: %s", gradle_version)

java_path_for_gradle = local_config.get("java-path-for-gradle", config.get("java-path-for-gradle", {}))
if minor_gradle_version not in java_path_for_gradle:
Expand Down
Loading