diag: Reduce "Waiting for request" log level to diag in py bridge

It's too noisy for Info
This commit is contained in:
John Colvin committed 2025-08-24 17:45:21 +00:00
1 parent e6a3116327
commit 7b41dbb19a
1 file changed
+6 -1
@@ -46,6 +46,11 @@ using std::vector;
#define WARN_TRACE(name) _LOG_TRACE(bts::Warn, name)
#define ERROR_TRACE(name) _LOG_TRACE(bts::Error, name)
#define DIAG_TRACE_PARAMS(name, params) \
LOG_TRACE_PARAMS( \
OrderMan, bts::Diag, std::string("exe_gw_bridge"), std::string(name), \
params)
#define INFO_TRACE_PARAMS(name, params) \
LOG_TRACE_PARAMS( \
OrderMan, bts::Info, std::string("exe_gw_bridge"), std::string(name), \
@@ -147,7 +152,7 @@ int ExecutionGatewayBridgeImpl::run_py(
ExecutionGateway &gw = **gw_ptr;
std::vector<std::shared_ptr<bts::md::py_interop::PySecurity>> new_securities;
while (is_ready.value() && *keep_going) {
INFO_TRACE_PARAMS("run_py", json_formatter("Waiting for request..."));
DIAG_TRACE_PARAMS("run_py", json_formatter("Waiting for request..."));
bool was_securities_dirty = false;
{
std::lock_guard<std::mutex> lock{securities_mx};