From baa14a63c9689757cd69a2c7322db4f871614be9 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 24 Feb 2020 10:20:47 -0800 Subject: [PATCH] It's LOG! It's LOG! It's big, it's heavy, it's wood --- controller/PostgreSQL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 8f8c2785a..d1f8ef218 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1017,6 +1017,10 @@ void PostgreSQL::commitThread() get(nwidInt, nwOrig, memberidInt, memOrig); + if(memOrig["authorized"] && ! (*config)["authorized"]) { + fprintf(stderr, "Member %s deauthed\n", (*config)["id"].get().c_str()); + } + _memberChanged(memOrig, memNew, qitem.second); } else { fprintf(stderr, "Can't notify of change. Error parsing nwid or memberid: %llu-%llu\n", (unsigned long long)nwidInt, (unsigned long long)memberidInt);