From 2ce2facb0e3cca21af6d2688bbba49ff86471d01 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Mon, 12 May 2025 21:51:34 +0800 Subject: [PATCH] Add network debugging --- src/slic3r/GUI/DeviceManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 156fbc87db..3b284e46cd 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -24,6 +24,8 @@ #define MINUTE_30 1800000 //ms #define TIME_OUT 5000 //ms +#define ORCA_NETWORK_DEBUG + namespace pt = boost::property_tree; float string_to_float(const std::string& str_value) { @@ -2773,6 +2775,10 @@ static ENUM enum_index_of(char const *key, char const **enum_names, int enum_cou int MachineObject::parse_json(std::string payload, bool key_field_only) { +#ifdef ORCA_NETWORK_DEBUG + BOOST_LOG_TRIVIAL(info) << "parse_json: payload = " << payload; +#endif + parse_msg_count++; std::chrono::system_clock::time_point clock_start = std::chrono::system_clock::now(); this->set_online_state(true);