From 11086566ce79a0f2b0b07d961431d848ccf97333 Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Wed, 28 Apr 2021 03:11:52 +0800 Subject: [PATCH] [python] make python-dev-ctrl less verbose (#6277) The current python-dev-ctrl are continuously printing heartbeat packets, making the output too verbose and hard to use. --- scripts/build_python.sh | 2 +- src/platform/Linux/BLEManagerImpl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_python.sh b/scripts/build_python.sh index 7e55e5cf1fe0aa..926f7eed0feed1 100755 --- a/scripts/build_python.sh +++ b/scripts/build_python.sh @@ -42,7 +42,7 @@ ENVIRONMENT_ROOT="$CHIP_ROOT/out/python_env" source "$CHIP_ROOT/scripts/activate.sh" # Generates ninja files -gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" +gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" --args="chip_detail_logging=false" # Compiles python files ninja -C "$OUTPUT_ROOT" python diff --git a/src/platform/Linux/BLEManagerImpl.cpp b/src/platform/Linux/BLEManagerImpl.cpp index 3f65709a0780f2..6593ea757b330a 100644 --- a/src/platform/Linux/BLEManagerImpl.cpp +++ b/src/platform/Linux/BLEManagerImpl.cpp @@ -272,7 +272,7 @@ void BLEManagerImpl::HandlePlatformSpecificBLEEvent(const ChipDeviceEvent * apEv { CHIP_ERROR err = CHIP_NO_ERROR; bool controlOpComplete = false; - ChipLogProgress(DeviceLayer, "HandlePlatformSpecificBLEEvent %d", apEvent->Type); + ChipLogDetail(DeviceLayer, "HandlePlatformSpecificBLEEvent %d", apEvent->Type); switch (apEvent->Type) { case DeviceEventType::kPlatformLinuxBLECentralConnected: @@ -476,7 +476,7 @@ void BLEManagerImpl::HandleTXCharChanged(BLE_CONNECTION_OBJECT conId, const uint CHIP_ERROR err = CHIP_NO_ERROR; System::PacketBufferHandle buf = System::PacketBufferHandle::NewWithData(value, len); - ChipLogProgress(DeviceLayer, "Indication received, conn = %p", conId); + ChipLogDetail(DeviceLayer, "Indication received, conn = %p", conId); VerifyOrExit(!buf.IsNull(), err = CHIP_ERROR_NO_MEMORY);