commit | d0da91437bb2221ddf35fe9a96e3220be3209632 | [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 | 6945acfa480fc0c26b2f84fb2d493763ef3ae079 [diff] | |
parent | 77a85ea5d55e6f4e47e753cec594f15091499c18 [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];