Skip to content

Commit ee5c4e8

Browse files
committed
revert dtor logging
1 parent f9a273c commit ee5c4e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/viam/sdk/module/service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ ModuleService::ModuleService(int argc,
255255

256256
ModuleService::~ModuleService() {
257257
// TODO(RSDK-5509): Run registered cleanup functions here.
258-
std::cerr << "Shutting down gracefully.\n";
258+
VIAM_SDK_LOG(info) << "Shutting down gracefully.";
259259
server_->shutdown();
260260

261261
if (parent_) {
262262
try {
263263
parent_->close();
264264
} catch (const std::exception& exc) {
265-
std::cerr << exc.what();
265+
VIAM_SDK_LOG(error) << exc.what();
266266
}
267267
}
268268
}

src/viam/sdk/robot/client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ RobotClient::~RobotClient() {
120120
try {
121121
this->close();
122122
} catch (const std::exception& e) {
123-
std::cerr << "Received err while closing RobotClient: " << e.what() << "\n";
123+
VIAM_SDK_LOG(error) << "Received err while closing RobotClient: " << e.what() << "\n";
124124
} catch (...) {
125-
std::cerr << "Received unknown err while closing RobotClient\n";
125+
VIAM_SDK_LOG(error) << "Received unknown err while closing RobotClient\n";
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)