Skip to content

Commit

Permalink
[python] make python-dev-ctrl less verbose (#6277)
Browse files Browse the repository at this point in the history
The current python-dev-ctrl are continuously printing heartbeat packets,
making the output too verbose and hard to use.
  • Loading branch information
gjc13 authored and pull[bot] committed Sep 16, 2021
1 parent 21e81b2 commit 1108656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/platform/Linux/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1108656

Please sign in to comment.