Merge "adb: call android::base::InitLogging even when adb tracing is disabled"

This commit is contained in:
Elliott Hughes 2015-08-12 03:20:04 +00:00 committed by Gerrit Code Review
commit b62f6c2a1c

View file

@ -192,16 +192,13 @@ static void setup_trace_mask() {
}
void adb_trace_init(char** argv) {
#if !ADB_HOST
// Don't open log file if no tracing, since this will block
// the crypto unmount of /data
const std::string trace_setting = get_trace_setting();
if (trace_setting.empty()) {
return;
}
#if !ADB_HOST
if (isatty(STDOUT_FILENO) == 0) {
start_device_log();
if (!get_trace_setting().empty()) {
if (isatty(STDOUT_FILENO) == 0) {
start_device_log();
}
}
#endif