Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 5858692

Browse files
committed
Reroute L0Mgr destructor error messages to appropriate log
1 parent c13e868 commit 5858692

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

omniscidb/L0Mgr/L0Mgr.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ L0Driver::L0Driver(ze_driver_handle_t handle) : driver_(handle) {
4949
L0Driver::~L0Driver() {
5050
auto status = (zeContextDestroy(context_));
5151
if (status) {
52-
std::cerr << "Non-zero status for context destructor" << std::endl;
52+
LOG(ERROR) << "Non-zero status for context destructor";
5353
}
5454
}
5555

@@ -116,7 +116,7 @@ L0CommandList::~L0CommandList() {
116116
// TODO: maybe return to pool
117117
auto status = zeCommandListDestroy(handle_);
118118
if (status) {
119-
std::cerr << "Non-zero status for command list destructor" << std::endl;
119+
LOG(ERROR) << "Non-zero status for command list destructor";
120120
}
121121
}
122122

@@ -201,7 +201,7 @@ ze_command_queue_handle_t L0CommandQueue::handle() const {
201201
L0CommandQueue::~L0CommandQueue() {
202202
auto status = (zeCommandQueueDestroy(handle_));
203203
if (status) {
204-
std::cerr << "Non-zero status for command queue destructor" << std::endl;
204+
LOG(ERROR) << "Non-zero status for command queue destructor";
205205
}
206206
}
207207

@@ -253,7 +253,7 @@ ze_module_handle_t L0Module::handle() const {
253253
L0Module::~L0Module() {
254254
auto status = zeModuleDestroy(handle_);
255255
if (status) {
256-
std::cerr << "Non-zero status for command module destructor" << std::endl;
256+
LOG(ERROR) << "Non-zero status for command module destructor";
257257
}
258258
}
259259

@@ -305,7 +305,7 @@ std::string L0Kernel::desc() const {
305305
L0Kernel::~L0Kernel() {
306306
auto status = zeKernelDestroy(handle_);
307307
if (status) {
308-
std::cerr << "Non-zero status for command kernel destructor" << std::endl;
308+
LOG(ERROR) << "Non-zero status for command kernel destructor";
309309
}
310310
}
311311

0 commit comments

Comments
 (0)