Skip to content

Commit 2ab2f93

Browse files
committed
Removed extra logs while reading attributes.
1 parent 3965601 commit 2ab2f93

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

src/app/clusters/service-area-server/service-area-server.cpp

+8-21
Original file line numberDiff line numberDiff line change
@@ -80,44 +80,31 @@ CHIP_ERROR Instance::Init()
8080

8181
CHIP_ERROR Instance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
8282
{
83-
ChipLogDetail(Zcl, "Service Area: Reading");
83+
ChipLogDetail(Zcl, "Service Area: Reading attribute");
8484

8585
switch (aPath.mAttributeId)
8686
{
8787

88-
case Attributes::SupportedLocations::Id: {
89-
ChipLogProgress(Zcl, "Service Area: Read SupportedLocations");
88+
case Attributes::SupportedLocations::Id:
9089
return ReadSupportedLocations(aEncoder);
91-
}
9290

93-
case Attributes::SupportedMaps::Id: {
94-
ChipLogProgress(Zcl, "Service Area: Read SupportedMaps");
91+
case Attributes::SupportedMaps::Id:
9592
return ReadSupportedMaps(aEncoder);
96-
}
9793

98-
case Attributes::SelectedLocations::Id: {
99-
ChipLogProgress(Zcl, "Service Area: Read SelectedLocations");
94+
case Attributes::SelectedLocations::Id:
10095
return ReadSelectedLocations(aEncoder);
101-
}
10296

103-
case Attributes::CurrentLocation::Id: {
104-
ChipLogProgress(Zcl, "Service Area: Read CurrentLocation");
97+
case Attributes::CurrentLocation::Id:
10598
return aEncoder.Encode(GetCurrentLocation());
106-
}
10799

108-
case Attributes::EstimatedEndTime::Id: {
109-
ChipLogProgress(Zcl, "Service Area: Read EstimatedEndTime");
100+
case Attributes::EstimatedEndTime::Id:
110101
return aEncoder.Encode(GetEstimatedEndTime());
111-
}
112102

113-
case Attributes::Progress::Id: {
114-
ChipLogProgress(Zcl, "Service Area: Read Progress");
103+
case Attributes::Progress::Id:
115104
return ReadProgress(aEncoder);
116-
}
117105

118-
case Attributes::FeatureMap::Id: {
106+
case Attributes::FeatureMap::Id:
119107
return aEncoder.Encode(mFeature.Raw());
120-
}
121108

122109
default:
123110
ChipLogProgress(Zcl, "Service Area: Read unsupported attribute %u", aPath.mAttributeId);

0 commit comments

Comments
 (0)