Skip to content

Commit fbf61a7

Browse files
committed
Add log in python wrapper
1 parent d77da0d commit fbf61a7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From cd895d25188467e78f12ebe1aa746ebfb2dadf17 Mon Sep 17 00:00:00 2001
2+
Message-ID: <cd895d25188467e78f12ebe1aa746ebfb2dadf17.1713957967.git.stefan@agner.ch>
3+
From: Stefan Agner <stefan@agner.ch>
4+
Date: Wed, 24 Apr 2024 13:25:42 +0200
5+
Subject: [PATCH] Log status in Python wrapper
6+
7+
---
8+
src/controller/python/chip/clusters/attribute.cpp | 1 +
9+
1 file changed, 1 insertion(+)
10+
11+
diff --git a/src/controller/python/chip/clusters/attribute.cpp b/src/controller/python/chip/clusters/attribute.cpp
12+
index e31f3431b8..6786568951 100644
13+
--- a/src/controller/python/chip/clusters/attribute.cpp
14+
+++ b/src/controller/python/chip/clusters/attribute.cpp
15+
@@ -168,6 +168,7 @@ public:
16+
uint8_t buffer[CHIP_CONFIG_DEFAULT_UDP_MTU_SIZE];
17+
uint32_t size = 0;
18+
CHIP_ERROR err = CHIP_NO_ERROR;
19+
+ ChipLogProgress(Controller, "OnEventData, apStatus %p passing %d", apStatus, to_underlying(apStatus == nullptr ? Protocols::InteractionModel::Status::Success : apStatus->mStatus));
20+
// When the apData is nullptr, means we did not receive a valid event data from server, status will be some error
21+
// status.
22+
if (apData != nullptr)
23+
--
24+
2.44.0
25+

0 commit comments

Comments
 (0)