Skip to content

Commit 8547d44

Browse files
authored
Add log tag for camera (project-chip#38269)
1 parent f13ba06 commit 8547d44

File tree

7 files changed

+68
-68
lines changed

7 files changed

+68
-68
lines changed

examples/camera-app/linux/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ CameraDevice cameraDevice;
2929

3030
void ApplicationInit()
3131
{
32-
ChipLogProgress(NotSpecified, "Matter Camera Linux App: ApplicationInit()");
32+
ChipLogProgress(Camera, "Matter Camera Linux App: ApplicationInit()");
3333
CameraAppInit(&cameraDevice);
3434
}
3535

examples/camera-app/linux/src/clusters/chime/chime-manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ Protocols::InteractionModel::Status ChimeManager::PlayChimeSound()
6363
auto selectedChime = mChimeServer->GetSelectedChime();
6464

6565
// Play chime sound
66-
ChipLogDetail(Zcl, "Playing Chime with sound ID: %u", unsigned(selectedChime));
66+
ChipLogDetail(Camera, "Playing Chime with sound ID: %u", unsigned(selectedChime));
6767
return Protocols::InteractionModel::Status::Success;
6868
}

examples/camera-app/linux/src/clusters/webrtc_provider/webrtc-provider-manager.cpp

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -115,36 +115,36 @@ CHIP_ERROR WebRTCProviderManager::HandleProvideOffer(const ProvideOfferRequestAr
115115

116116
mPeerConnection->onLocalDescription([this](rtc::Description description) {
117117
mSdpAnswer = std::string(description);
118-
ChipLogProgress(NotSpecified, "Local Description:");
119-
ChipLogProgress(NotSpecified, "%s", mSdpAnswer.c_str());
118+
ChipLogProgress(Camera, "Local Description:");
119+
ChipLogProgress(Camera, "%s", mSdpAnswer.c_str());
120120

121121
ScheduleAnswerSend();
122122
});
123123

124124
mPeerConnection->onLocalCandidate([](rtc::Candidate candidate) {
125-
ChipLogProgress(NotSpecified, "Local Candidate:");
126-
ChipLogProgress(NotSpecified, "%s", std::string(candidate).c_str());
125+
ChipLogProgress(Camera, "Local Candidate:");
126+
ChipLogProgress(Camera, "%s", std::string(candidate).c_str());
127127
});
128128

129129
mPeerConnection->onStateChange([](rtc::PeerConnection::State state) {
130130
// Convert the enum to an integer or string as needed
131-
ChipLogProgress(NotSpecified, "[State: %u]", static_cast<unsigned>(state));
131+
ChipLogProgress(Camera, "[State: %u]", static_cast<unsigned>(state));
132132
});
133133

134134
mPeerConnection->onGatheringStateChange([](rtc::PeerConnection::GatheringState state) {
135-
ChipLogProgress(NotSpecified, "[Gathering State: %u]", static_cast<unsigned>(state));
135+
ChipLogProgress(Camera, "[Gathering State: %u]", static_cast<unsigned>(state));
136136
});
137137

138138
mPeerConnection->onDataChannel([&](std::shared_ptr<rtc::DataChannel> _dc) {
139-
ChipLogProgress(NotSpecified, "[Got a DataChannel with label: %s]", _dc->label().c_str());
139+
ChipLogProgress(Camera, "[Got a DataChannel with label: %s]", _dc->label().c_str());
140140
mDataChannel = _dc;
141141

142-
mDataChannel->onClosed([&]() { ChipLogProgress(NotSpecified, "[DataChannel closed: %s]", mDataChannel->label().c_str()); });
142+
mDataChannel->onClosed([&]() { ChipLogProgress(Camera, "[DataChannel closed: %s]", mDataChannel->label().c_str()); });
143143

144144
mDataChannel->onMessage([](auto data) {
145145
if (std::holds_alternative<std::string>(data))
146146
{
147-
ChipLogProgress(NotSpecified, "[Received message: %s]", std::get<std::string>(data).c_str());
147+
ChipLogProgress(Camera, "[Received message: %s]", std::get<std::string>(data).c_str());
148148
}
149149
});
150150
});
@@ -161,30 +161,30 @@ CHIP_ERROR WebRTCProviderManager::HandleProvideAnswer(uint16_t sessionId, const
161161

162162
CHIP_ERROR WebRTCProviderManager::HandleProvideICECandidates(uint16_t sessionId, const std::vector<std::string> & candidates)
163163
{
164-
ChipLogProgress(NotSpecified, "HandleProvideICECandidates called with sessionId: %u", sessionId);
164+
ChipLogProgress(Camera, "HandleProvideICECandidates called with sessionId: %u", sessionId);
165165

166166
// Check if the provided sessionId matches your current session
167167
if (sessionId != mCurrentSessionId)
168168
{
169-
ChipLogError(NotSpecified, "Session ID %u does not match the current session ID %u", sessionId, mCurrentSessionId);
169+
ChipLogError(Camera, "Session ID %u does not match the current session ID %u", sessionId, mCurrentSessionId);
170170
return CHIP_ERROR_INVALID_ARGUMENT;
171171
}
172172

173173
if (!mPeerConnection)
174174
{
175-
ChipLogError(NotSpecified, "Cannot process ICE candidates: mPeerConnection is null");
175+
ChipLogError(Camera, "Cannot process ICE candidates: mPeerConnection is null");
176176
return CHIP_ERROR_INCORRECT_STATE;
177177
}
178178

179179
if (candidates.empty())
180180
{
181-
ChipLogError(NotSpecified, "Candidate list is empty. At least one candidate is expected.");
181+
ChipLogError(Camera, "Candidate list is empty. At least one candidate is expected.");
182182
return CHIP_ERROR_INVALID_ARGUMENT;
183183
}
184184

185185
for (const auto & candidate : candidates)
186186
{
187-
ChipLogProgress(NotSpecified, "Applying candidate: %s", candidate.c_str());
187+
ChipLogProgress(Camera, "Applying candidate: %s", candidate.c_str());
188188
mPeerConnection->addRemoteCandidate(candidate);
189189
}
190190

@@ -218,7 +218,7 @@ WebRTCProviderManager::ValidateStreamUsage(StreamUsageEnum streamUsage,
218218
void WebRTCProviderManager::ScheduleAnswerSend()
219219
{
220220
DeviceLayer::SystemLayer().ScheduleLambda([this]() {
221-
ChipLogProgress(NotSpecified, "Sending Answer command to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
221+
ChipLogProgress(Camera, "Sending Answer command to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
222222

223223
mCommandType = CommandType::kAnswer;
224224

@@ -234,9 +234,9 @@ void WebRTCProviderManager::OnDeviceConnected(void * context, Messaging::Exchang
234234
const SessionHandle & sessionHandle)
235235
{
236236
WebRTCProviderManager * self = reinterpret_cast<WebRTCProviderManager *>(context);
237-
VerifyOrReturn(self != nullptr, ChipLogError(NotSpecified, "OnDeviceConnected:: context is null"));
237+
VerifyOrReturn(self != nullptr, ChipLogError(Camera, "OnDeviceConnected:: context is null"));
238238

239-
ChipLogProgress(NotSpecified, "CASE session established, sending command with Command Type: %d...",
239+
ChipLogProgress(Camera, "CASE session established, sending command with Command Type: %d...",
240240
static_cast<int>(self->mCommandType));
241241

242242
CHIP_ERROR err = CHIP_NO_ERROR;
@@ -254,26 +254,24 @@ void WebRTCProviderManager::OnDeviceConnected(void * context, Messaging::Exchang
254254

255255
if (err != CHIP_NO_ERROR)
256256
{
257-
ChipLogError(NotSpecified, "OnDeviceConnected::SendCommand failed: %" CHIP_ERROR_FORMAT, err.Format());
257+
ChipLogError(Camera, "OnDeviceConnected::SendCommand failed: %" CHIP_ERROR_FORMAT, err.Format());
258258
}
259259
}
260260

261261
void WebRTCProviderManager::OnDeviceConnectionFailure(void * context, const ScopedNodeId & peerId, CHIP_ERROR err)
262262
{
263263
LogErrorOnFailure(err);
264264
WebRTCProviderManager * self = reinterpret_cast<WebRTCProviderManager *>(context);
265-
VerifyOrReturn(self != nullptr, ChipLogError(NotSpecified, "OnDeviceConnectionFailure: context is null"));
265+
VerifyOrReturn(self != nullptr, ChipLogError(Camera, "OnDeviceConnectionFailure: context is null"));
266266
}
267267

268268
CHIP_ERROR WebRTCProviderManager::SendAnswerCommand(Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle)
269269
{
270270
auto onSuccess = [](const ConcreteCommandPath & commandPath, const StatusIB & status, const auto & dataResponse) {
271-
ChipLogProgress(NotSpecified, "Answer command succeeds");
271+
ChipLogProgress(Camera, "Answer command succeeds");
272272
};
273273

274-
auto onFailure = [](CHIP_ERROR error) {
275-
ChipLogError(NotSpecified, "Answer command failed: %" CHIP_ERROR_FORMAT, error.Format());
276-
};
274+
auto onFailure = [](CHIP_ERROR error) { ChipLogError(Camera, "Answer command failed: %" CHIP_ERROR_FORMAT, error.Format()); };
277275

278276
// Build the command
279277
WebRTCTransportRequestor::Commands::Answer::Type command;

examples/camera-controller/webrtc_manager/WebRTCManager.cpp

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ CHIP_ERROR WebRTCManager::SetRemoteDescription(uint16_t webRTCSessionID, const s
5858
{
5959
if (!mPeerConnection)
6060
{
61-
ChipLogError(NotSpecified, "Cannot set remote description: mPeerConnection is null");
61+
ChipLogError(Camera, "Cannot set remote description: mPeerConnection is null");
6262
return CHIP_ERROR_INCORRECT_STATE;
6363
}
6464

65-
ChipLogProgress(NotSpecified, "WebRTCManager::SetRemoteDescription");
65+
ChipLogProgress(Camera, "WebRTCManager::SetRemoteDescription");
6666
mPeerConnection->setRemoteDescription(sdp);
6767

6868
// Schedule the ProvideICECandidates() call to run asynchronously.
@@ -73,15 +73,15 @@ CHIP_ERROR WebRTCManager::SetRemoteDescription(uint16_t webRTCSessionID, const s
7373

7474
CHIP_ERROR WebRTCManager::Connnect(Controller::DeviceCommissioner & commissioner, NodeId nodeId, EndpointId endpointId)
7575
{
76-
ChipLogProgress(NotSpecified, "Attempting to establish WebRTC connection to node 0x" ChipLogFormatX64 " on endpoint 0x%x",
76+
ChipLogProgress(Camera, "Attempting to establish WebRTC connection to node 0x" ChipLogFormatX64 " on endpoint 0x%x",
7777
ChipLogValueX64(nodeId), endpointId);
7878

7979
FabricIndex fabricIndex = commissioner.GetFabricIndex();
8080
const FabricInfo * fabricInfo = commissioner.GetFabricTable()->FindFabricWithIndex(fabricIndex);
8181
VerifyOrReturnError(fabricInfo != nullptr, CHIP_ERROR_INCORRECT_STATE);
8282

8383
uint64_t fabricId = fabricInfo->GetFabricId();
84-
ChipLogProgress(NotSpecified, "Commissioner is on Fabric ID 0x" ChipLogFormatX64, ChipLogValueX64(fabricId));
84+
ChipLogProgress(Camera, "Commissioner is on Fabric ID 0x" ChipLogFormatX64, ChipLogValueX64(fabricId));
8585

8686
chip::ScopedNodeId peerId(nodeId, fabricIndex);
8787

@@ -95,42 +95,40 @@ CHIP_ERROR WebRTCManager::Connnect(Controller::DeviceCommissioner & commissioner
9595

9696
mPeerConnection->onLocalDescription([this](rtc::Description description) {
9797
mLocalDescription = std::string(description);
98-
ChipLogProgress(NotSpecified, "Local Description:");
99-
ChipLogProgress(NotSpecified, "%s", mLocalDescription.c_str());
98+
ChipLogProgress(Camera, "Local Description:");
99+
ChipLogProgress(Camera, "%s", mLocalDescription.c_str());
100100
});
101101

102102
mPeerConnection->onLocalCandidate([this](rtc::Candidate candidate) {
103103
std::string candidateStr = std::string(candidate);
104104
mLocalCandidates.push_back(candidateStr);
105-
ChipLogProgress(NotSpecified, "Local Candidate:");
106-
ChipLogProgress(NotSpecified, "%s", candidateStr.c_str());
105+
ChipLogProgress(Camera, "Local Candidate:");
106+
ChipLogProgress(Camera, "%s", candidateStr.c_str());
107107
});
108108

109-
mPeerConnection->onStateChange([](rtc::PeerConnection::State state) {
110-
ChipLogProgress(NotSpecified, "[PeerConnection State: %d]", static_cast<int>(state));
111-
});
109+
mPeerConnection->onStateChange(
110+
[](rtc::PeerConnection::State state) { ChipLogProgress(Camera, "[PeerConnection State: %d]", static_cast<int>(state)); });
112111

113112
mPeerConnection->onGatheringStateChange([](rtc::PeerConnection::GatheringState state) {
114-
ChipLogProgress(NotSpecified, "[Gathering State: %d]", static_cast<int>(state));
113+
ChipLogProgress(Camera, "[Gathering State: %d]", static_cast<int>(state));
115114
});
116115

117116
// Create a data channel for this offerer
118117
mDataChannel = mPeerConnection->createDataChannel("test");
119118

120119
if (mDataChannel)
121120
{
122-
mDataChannel->onOpen([&]() {
123-
ChipLogProgress(NotSpecified, "[DataChannel open: %s]", mDataChannel ? mDataChannel->label().c_str() : "unknown");
124-
});
121+
mDataChannel->onOpen(
122+
[&]() { ChipLogProgress(Camera, "[DataChannel open: %s]", mDataChannel ? mDataChannel->label().c_str() : "unknown"); });
125123

126124
mDataChannel->onClosed([&]() {
127-
ChipLogProgress(NotSpecified, "[DataChannel closed: %s]", mDataChannel ? mDataChannel->label().c_str() : "unknown");
125+
ChipLogProgress(Camera, "[DataChannel closed: %s]", mDataChannel ? mDataChannel->label().c_str() : "unknown");
128126
});
129127

130128
mDataChannel->onMessage([](auto data) {
131129
if (std::holds_alternative<std::string>(data))
132130
{
133-
ChipLogProgress(NotSpecified, "[Received: %s]", std::get<std::string>(data).c_str());
131+
ChipLogProgress(Camera, "[Received: %s]", std::get<std::string>(data).c_str());
134132
}
135133
});
136134
}
@@ -141,7 +139,7 @@ CHIP_ERROR WebRTCManager::Connnect(Controller::DeviceCommissioner & commissioner
141139
CHIP_ERROR WebRTCManager::ProvideOffer(DataModel::Nullable<uint16_t> webRTCSessionID,
142140
Clusters::WebRTCTransportProvider::StreamUsageEnum streamUsage)
143141
{
144-
ChipLogProgress(NotSpecified, "Sending ProvideOffer command to the peer device");
142+
ChipLogProgress(Camera, "Sending ProvideOffer command to the peer device");
145143

146144
CHIP_ERROR err =
147145
mWebRTCProviderClient.ProvideOffer(webRTCSessionID, mLocalDescription, streamUsage, kWebRTCRequesterDynamicEndpointId,
@@ -153,19 +151,19 @@ CHIP_ERROR WebRTCManager::ProvideOffer(DataModel::Nullable<uint16_t> webRTCSessi
153151

154152
if (err != CHIP_NO_ERROR)
155153
{
156-
ChipLogError(NotSpecified, "Failed to send ProvideOffer: %" CHIP_ERROR_FORMAT, err.Format());
154+
ChipLogError(Camera, "Failed to send ProvideOffer: %" CHIP_ERROR_FORMAT, err.Format());
157155
}
158156

159157
return err;
160158
}
161159

162160
CHIP_ERROR WebRTCManager::ProvideICECandidates(uint16_t webRTCSessionID)
163161
{
164-
ChipLogProgress(NotSpecified, "Sending ProvideICECandidates command to the peer device");
162+
ChipLogProgress(Camera, "Sending ProvideICECandidates command to the peer device");
165163

166164
if (mLocalCandidates.empty())
167165
{
168-
ChipLogError(NotSpecified, "No local ICE candidates to send");
166+
ChipLogError(Camera, "No local ICE candidates to send");
169167
return CHIP_ERROR_INVALID_ARGUMENT;
170168
}
171169

@@ -183,20 +181,20 @@ CHIP_ERROR WebRTCManager::ProvideICECandidates(uint16_t webRTCSessionID)
183181

184182
if (err != CHIP_NO_ERROR)
185183
{
186-
ChipLogError(NotSpecified, "Failed to send ProvideICECandidates: %" CHIP_ERROR_FORMAT, err.Format());
184+
ChipLogError(Camera, "Failed to send ProvideICECandidates: %" CHIP_ERROR_FORMAT, err.Format());
187185
}
188186

189187
return err;
190188
}
191189

192190
void WebRTCManager::HandleProvideOfferResponse(TLV::TLVReader & data)
193191
{
194-
ChipLogProgress(NotSpecified, "WebRTCManager::HandleProvideOfferResponse.");
192+
ChipLogProgress(Camera, "WebRTCManager::HandleProvideOfferResponse.");
195193
}
196194

197195
void WebRTCManager::HandleCommandResponse(const ConcreteCommandPath & path, TLV::TLVReader & data)
198196
{
199-
ChipLogProgress(NotSpecified, "Command Response received.");
197+
ChipLogProgress(Camera, "Command Response received.");
200198

201199
// TODO: Upon receiving, the client SHALL create a new WebRTCSessionStruct populated with the values from this command, along
202200
// with the accessing Peer Node ID and Local Fabric Index entries stored in the Secure Session Context, as the PeerNodeID and

examples/camera-controller/webrtc_manager/WebRTCProviderClient.cpp

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void WebRTCProviderClient::Init(const ScopedNodeId & peerId, EndpointId endpoint
2727
mPeerId = peerId;
2828
mEndpointId = endpointId;
2929

30-
ChipLogProgress(NotSpecified, "WebRTCProviderClient: Initialized with PeerId=0x" ChipLogFormatX64 ", endpoint=%u",
30+
ChipLogProgress(Camera, "WebRTCProviderClient: Initialized with PeerId=0x" ChipLogFormatX64 ", endpoint=%u",
3131
ChipLogValueX64(peerId.GetNodeId()), static_cast<unsigned>(endpointId));
3232
}
3333

@@ -38,7 +38,7 @@ CHIP_ERROR WebRTCProviderClient::ProvideOffer(
3838
Optional<DataModel::List<const Clusters::WebRTCTransportProvider::Structs::ICEServerStruct::Type>> ICEServers,
3939
Optional<chip::CharSpan> ICETransportPolicy)
4040
{
41-
ChipLogProgress(NotSpecified, "Sending ProvideOffer to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
41+
ChipLogProgress(Camera, "Sending ProvideOffer to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
4242

4343
// Store the command type
4444
mCommandType = CommandType::kProvideOffer;
@@ -66,7 +66,7 @@ CHIP_ERROR WebRTCProviderClient::ProvideOffer(
6666

6767
CHIP_ERROR WebRTCProviderClient::ProvideICECandidates(uint16_t webRTCSessionID, DataModel::List<const chip::CharSpan> ICECandidates)
6868
{
69-
ChipLogProgress(NotSpecified, "Sending ProvideICECandidates to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
69+
ChipLogProgress(Camera, "Sending ProvideICECandidates to node " ChipLogFormatX64, ChipLogValueX64(mPeerId.GetNodeId()));
7070

7171
// Store the command type
7272
mCommandType = CommandType::kProvideICECandidates;
@@ -88,12 +88,12 @@ CHIP_ERROR WebRTCProviderClient::ProvideICECandidates(uint16_t webRTCSessionID,
8888
void WebRTCProviderClient::OnResponse(CommandSender * client, const ConcreteCommandPath & path, const StatusIB & status,
8989
TLV::TLVReader * data)
9090
{
91-
ChipLogProgress(NotSpecified, "WebRTCProviderClient: OnResponse.");
91+
ChipLogProgress(Camera, "WebRTCProviderClient: OnResponse.");
9292

9393
CHIP_ERROR error = status.ToChipError();
9494
if (CHIP_NO_ERROR != error)
9595
{
96-
ChipLogError(NotSpecified, "Response Failure: %s", ErrorStr(error));
96+
ChipLogError(Camera, "Response Failure: %s", ErrorStr(error));
9797
return;
9898
}
9999

@@ -105,13 +105,13 @@ void WebRTCProviderClient::OnResponse(CommandSender * client, const ConcreteComm
105105

106106
void WebRTCProviderClient::OnError(const CommandSender * client, CHIP_ERROR error)
107107
{
108-
ChipLogError(NotSpecified, "WebRTCProviderClient: OnError for command %u: %" CHIP_ERROR_FORMAT,
109-
static_cast<unsigned>(mCommandType), error.Format());
108+
ChipLogError(Camera, "WebRTCProviderClient: OnError for command %u: %" CHIP_ERROR_FORMAT, static_cast<unsigned>(mCommandType),
109+
error.Format());
110110
}
111111

112112
void WebRTCProviderClient::OnDone(CommandSender * client)
113113
{
114-
ChipLogProgress(NotSpecified, "WebRTCProviderClient: OnDone for command %u.", static_cast<unsigned>(mCommandType));
114+
ChipLogProgress(Camera, "WebRTCProviderClient: OnDone for command %u.", static_cast<unsigned>(mCommandType));
115115

116116
// Reset command type, free up the CommandSender
117117
mCommandType = CommandType::kUndefined;
@@ -121,8 +121,7 @@ void WebRTCProviderClient::OnDone(CommandSender * client)
121121
CHIP_ERROR WebRTCProviderClient::SendCommandForType(Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle,
122122
CommandType commandType)
123123
{
124-
ChipLogProgress(NotSpecified, "Sending command with Endpoint ID: %d, Command Type: %d", mEndpointId,
125-
static_cast<int>(commandType));
124+
ChipLogProgress(Camera, "Sending command with Endpoint ID: %d, Command Type: %d", mEndpointId, static_cast<int>(commandType));
126125

127126
switch (commandType)
128127
{
@@ -143,20 +142,20 @@ void WebRTCProviderClient::OnDeviceConnected(void * context, Messaging::Exchange
143142
const SessionHandle & sessionHandle)
144143
{
145144
WebRTCProviderClient * self = reinterpret_cast<WebRTCProviderClient *>(context);
146-
VerifyOrReturn(self != nullptr, ChipLogError(NotSpecified, "OnDeviceConnected: context is null"));
145+
VerifyOrReturn(self != nullptr, ChipLogError(Camera, "OnDeviceConnected: context is null"));
147146

148-
ChipLogProgress(NotSpecified, "CASE session established, sending WebRTCTransportProvider command...");
147+
ChipLogProgress(Camera, "CASE session established, sending WebRTCTransportProvider command...");
149148
CHIP_ERROR sendErr = self->SendCommandForType(exchangeMgr, sessionHandle, self->mCommandType);
150149
if (sendErr != CHIP_NO_ERROR)
151150
{
152-
ChipLogError(NotSpecified, "SendCommandForType failed: %" CHIP_ERROR_FORMAT, sendErr.Format());
151+
ChipLogError(Camera, "SendCommandForType failed: %" CHIP_ERROR_FORMAT, sendErr.Format());
153152
}
154153
}
155154

156155
void WebRTCProviderClient::OnDeviceConnectionFailure(void * context, const ScopedNodeId & peerId, CHIP_ERROR err)
157156
{
158157
LogErrorOnFailure(err);
159158
WebRTCProviderClient * self = reinterpret_cast<WebRTCProviderClient *>(context);
160-
VerifyOrReturn(self != nullptr, ChipLogError(NotSpecified, "OnDeviceConnectionFailure: context is null"));
159+
VerifyOrReturn(self != nullptr, ChipLogError(Camera, "OnDeviceConnectionFailure: context is null"));
161160
self->OnDone(nullptr);
162161
}

0 commit comments

Comments
 (0)