diff options
author | 2024-05-07 22:18:37 +0000 | |
---|---|---|
committer | 2024-05-07 22:51:51 +0000 | |
commit | ef1c03f9977e883cc3cbacd1837e1174b2ea4165 (patch) | |
tree | d2476ba1e899a7053be6906ea575456d5ffee1ed /envsetup.sh | |
parent | 5a99056218e4baa26de4d7ee1f0f53b2bd7a3b8d (diff) |
Remove the ANDROID_ENABLE_TOOL_LOGGING environment variable
Reduce the number of variables required to toggle logging. This simplifies configuration and usage.
Test: atest run_tool_with_logging_test
Bug: 331638854
Change-Id: I6f2a820b59a0d1f45aba9ffb3e33e7ace601e9c6
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh index 1ef9a54803..50fec5146a 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1112,8 +1112,8 @@ function run_tool_with_logging() { local tool_binary="$1" shift - # If logging is not enabled or the logger is not configured, run the original command and return. - if [[ "${ANDROID_ENABLE_TOOL_LOGGING}" != "true" ]] || [[ -z "${ANDROID_TOOL_LOGGER}" ]]; then + # If the logger is not configured, run the original command and return. + if [[ -z "${ANDROID_TOOL_LOGGER}" ]]; then "${tool_binary}" "${@}" return $? fi |