commit | 79fe9ab01d3d62f279700b3a0b155ad2878e38c6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jul 30 12:26:31 2019 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Jul 30 12:26:31 2019 -0700 |
tree | dc77ac150ea14c2351659cfaa9aadf4a1f2975f8 | |
parent | 835d90e88b019cc0661d6702940b4f7145a80318 [diff] [blame] |
Allow overriding the log path. Bug: https://issuetracker.google.com/112588493 Test: manual Change-Id: Ic273d46544479332b8e031f30feadd1840f2d653
diff --git a/adb_utils.cpp b/adb_utils.cpp index cf5fbc8..d1910f1 100644 --- a/adb_utils.cpp +++ b/adb_utils.cpp
@@ -320,6 +320,10 @@ } std::string GetLogFilePath() { + // https://issuetracker.google.com/112588493 + const char* path = getenv("ANDROID_ADB_LOG_PATH"); + if (path) return path; + #if defined(_WIN32) const char log_name[] = "adb.log"; WCHAR temp_path[MAX_PATH];