debug output

This commit is contained in:
Grant Limberg 2025-06-20 14:39:12 -07:00
parent 6fa849c956
commit 4fea4fc76f
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -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 {