am b62f6c2a: Merge "adb: call android::base::InitLogging even when adb tracing is disabled"
* commit 'b62f6c2a1cc9f7697abb6fc5c74565da6631e0dd': adb: call android::base::InitLogging even when adb tracing is disabled
This commit is contained in:
commit
8bb6b3e1ff
1 changed files with 5 additions and 8 deletions
13
adb/adb.cpp
13
adb/adb.cpp
|
|
@ -192,16 +192,13 @@ static void setup_trace_mask() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void adb_trace_init(char** argv) {
|
void adb_trace_init(char** argv) {
|
||||||
|
#if !ADB_HOST
|
||||||
// Don't open log file if no tracing, since this will block
|
// Don't open log file if no tracing, since this will block
|
||||||
// the crypto unmount of /data
|
// the crypto unmount of /data
|
||||||
const std::string trace_setting = get_trace_setting();
|
if (!get_trace_setting().empty()) {
|
||||||
if (trace_setting.empty()) {
|
if (isatty(STDOUT_FILENO) == 0) {
|
||||||
return;
|
start_device_log();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !ADB_HOST
|
|
||||||
if (isatty(STDOUT_FILENO) == 0) {
|
|
||||||
start_device_log();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue