summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2020-05-21 09:49:55 -0700
committerGrant Limberg <[email protected]>2020-05-21 09:49:55 -0700
commit13929aee6f48cb201d4575a0095cc03704255ebc (patch)
tree91af94083226831217dd12df1b206015465398cf /controller/PostgreSQL.cpp
parentc2409ad6c993bf3222bc115e348fba3078398c7f (diff)
reduce log chattiness
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index c3cfe7f0..4de01172 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1674,7 +1674,9 @@ void PostgreSQL::onlineNotification_Redis()
}
}
} catch (sw::redis::Error &e) {
+#ifdef ZT_TRACE
fprintf(stderr, "Error in online notification thread (redis): %s\n", e.what());
+#endif
}
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
@@ -1695,7 +1697,6 @@ void PostgreSQL::_doRedisUpdate(sw::redis::Transaction &tx, std::string &control
OSUtils::ztsnprintf(memTmp,sizeof(memTmp), "%.10llx", memberid_i);
if (!get(nwid_i, jtmp1, memberid_i, jtmp2)){
- fprintf(stderr, "network or member doesn't exist\n");
continue; // skip non existent members/networks
}