fix: cpp tests hanging when traces are enabled
This commit is contained in:
parent
0c66093726
commit
c33802f559
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ extern "C" auto runtestcase(const char *name) -> int {
|
||||||
env_t log_env{};
|
env_t log_env{};
|
||||||
auto trace = [&](const buffer &buf) {
|
auto trace = [&](const buffer &buf) {
|
||||||
const lock_guard<mutex> lock(trace_m);
|
const lock_guard<mutex> lock(trace_m);
|
||||||
cout << buf.to_json() << '\n';
|
cerr << buf.to_json() << '\n';
|
||||||
};
|
};
|
||||||
log_env.on_trace(trace);
|
log_env.on_trace(trace);
|
||||||
env.on_trace(trace);
|
env.on_trace(trace);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue