File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -255,14 +255,14 @@ ModuleService::ModuleService(int argc,
255255
256256ModuleService::~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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments