summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2021-08-19 09:21:52 -0700
committerGrant Limberg <[email protected]>2021-08-19 09:21:52 -0700
commit9eae4441046306d8a3333e484bb29c5d39efeac0 (patch)
treee342add862b4a55d364a5fcbf946011dc3ce9e49 /controller/PostgreSQL.cpp
parent576b4f03a5840fb65c65e9dad593032d819fe943 (diff)
kill some verbose logs
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 0fc3f40d..eda5b684 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -232,7 +232,6 @@ bool PostgreSQL::isReady()
bool PostgreSQL::save(nlohmann::json &record,bool notifyListeners)
{
- fprintf(stderr, "PostgreSQL::save\n");
bool modified = false;
try {
if (!record.is_object()) {
@@ -241,7 +240,7 @@ bool PostgreSQL::save(nlohmann::json &record,bool notifyListeners)
}
const std::string objtype = record["objtype"];
if (objtype == "network") {
- fprintf(stderr, "network save\n");
+ //fprintf(stderr, "network save\n");
const uint64_t nwid = OSUtils::jsonIntHex(record["id"],0ULL);
if (nwid) {
nlohmann::json old;
@@ -257,17 +256,17 @@ bool PostgreSQL::save(nlohmann::json &record,bool notifyListeners)
std::string memberId = record["id"];
const uint64_t nwid = OSUtils::jsonIntHex(record["nwid"],0ULL);
const uint64_t id = OSUtils::jsonIntHex(record["id"],0ULL);
- fprintf(stderr, "member save %s-%s\n", networkId.c_str(), memberId.c_str());
+ //fprintf(stderr, "member save %s-%s\n", networkId.c_str(), memberId.c_str());
if ((id)&&(nwid)) {
nlohmann::json network,old;
get(nwid,network,id,old);
if ((!old.is_object())||(!_compareRecords(old,record))) {
- fprintf(stderr, "commit queue post\n");
+ //fprintf(stderr, "commit queue post\n");
record["revision"] = OSUtils::jsonInt(record["revision"],0ULL) + 1ULL;
_commitQueue.post(std::pair<nlohmann::json,bool>(record,notifyListeners));
modified = true;
} else {
- fprintf(stderr, "no change\n");
+ //fprintf(stderr, "no change\n");
}
}
} else {