Ensure log is flushed so we could know what happened before crash

This commit is contained in:
Noisyfox 2025-05-22 17:01:48 +08:00
parent 8b43ecca30
commit 4339bd308e

View file

@ -2811,6 +2811,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
{
#ifdef ORCA_NETWORK_DEBUG
BOOST_LOG_TRIVIAL(info) << "parse_json: payload = " << payload;
flush_logs();
#endif
parse_msg_count++;