[fix] test api log to stderr
Some checks failed
Verification / Is-Buildable (push) Failing after 2m45s

This commit is contained in:
Artur Mukhamadiev 2026-04-20 17:00:09 +03:00
parent 1f2245e342
commit be4dc501ae

View File

@ -4,7 +4,6 @@
#include <condition_variable>
#include <glog/logging.h>
#include <list>
#include <mutex>
#include <queue>
#include <set>
@ -48,9 +47,8 @@ class TestThread {
}
if (state.load() && calls_queue.empty())
cv.wait_for(lock, thr_sleep, [&] {
return stoken.stop_requested();
});
cv.wait_for(lock, thr_sleep,
[&] { return stoken.stop_requested(); });
lock.unlock();
}
@ -138,8 +136,10 @@ class TestThread {
extern "C" {
void crpc_test_init() {
if (!google::IsGoogleLoggingInitialized())
if (!google::IsGoogleLoggingInitialized()) {
google::InitGoogleLogging("TestRPC");
google::LogToStderr();
}
try {
test.start();
} catch (const std::exception &e) {