commit | 11295b7f8bdf5bf3009ed1b1add5ac7afde1e16b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Jul 31 19:44:58 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jul 31 19:44:58 2019 +0000 |
tree | 1aeee18bf8e4963d1a7ffebaa380c1e9ee337fe2 | |
parent | 51406823c11e7d43960148062363079ec19c3026 [diff] | |
parent | 1a9da399cb082c0b6bb27d641b783980947c9433 [diff] |
Merge "Allow overriding the log path."
diff --git a/adb/adb_utils.cpp b/adb/adb_utils.cpp index cf5fbc8..d1910f1 100644 --- a/adb/adb_utils.cpp +++ b/adb/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];