From 9bf39efb1b8527d7c46b20538cbb75bd60900b44 Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Thu, 24 Jun 2010 09:38:27 -0700 Subject: [PATCH] Do not log AT command traffic by default. Bug: 2792732 Change-Id: I24cb14c14f49e606f0aef1d05a533b90b3dfff53 --- core/jni/android_bluetooth_HeadsetBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/jni/android_bluetooth_HeadsetBase.cpp b/core/jni/android_bluetooth_HeadsetBase.cpp index 5593a26b00f82..4e9fbaf1bd620 100644 --- a/core/jni/android_bluetooth_HeadsetBase.cpp +++ b/core/jni/android_bluetooth_HeadsetBase.cpp @@ -169,7 +169,7 @@ again: // never receive non-ASCII UTF-8). // This was added because of the BMW 2005 E46 which sends binary junk. if (is_ascii(buf)) { - LOG(LOG_INFO, "Bluetooth AT recv", "%s", buf); + IF_LOGV() LOG(LOG_VERBOSE, "Bluetooth AT recv", "%s", buf); } else { LOGW("Ignoring invalid AT command: %s", buf); buf[0] = NULL; @@ -494,7 +494,7 @@ static void pretty_log_urc(const char *urc) { } } } - LOG(LOG_INFO, "Bluetooth AT sent", "%s", buf); + IF_LOGV() LOG(LOG_VERBOSE, "Bluetooth AT sent", "%s", buf); free(buf); }