Browse Source

debug output

Grant Limberg 1 month ago
parent
commit
4fea4fc76f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controller/CV2.cpp

+ 2 - 1
controller/CV2.cpp

@@ -856,7 +856,8 @@ void CV2::commitThread()
 						fprintf(stderr, "%s ERROR: SQL error: %s\n", _myAddressStr.c_str(), s->query().c_str());
 					}
 				} catch (std::exception &e) {
-					fprintf(stderr, "%s ERROR: Error updating member %s-%s: %s\n", _myAddressStr.c_str(), networkId.c_str(), memberId.c_str(), e.what());
+					std::string cfgDump = OSUtils::jsonDump(config, 2);
+					fprintf(stderr, "%s ERROR: Error updating member %s-%s: %s\njsonDump: %s\n", _myAddressStr.c_str(), networkId.c_str(), memberId.c_str(), e.what(), cfgDump.c_str());
 				}
 			} else if (objtype == "network") {
 				try {