Add log messages for freeing service browsers and entry groups.

This commit is contained in:
Vibhav Pant
2023-08-29 15:14:07 +05:30
parent 47057e068d
commit 6abeac91ce
@@ -38,6 +38,9 @@ public:
registerProxy();
}
~EntryGroup() {
NEARBY_LOGS(VERBOSE) << __func__ << ": Freeing entry group "
<< getObjectPath();
try {
Free();
} catch (const sdbus::Error &e) {
@@ -64,12 +67,15 @@ public:
registerProxy();
}
~ServiceBrowser() {
unregisterProxy();
NEARBY_LOGS(VERBOSE) << __func__ << ": Freeing service browser "
<< getObjectPath();
try {
Free();
} catch (const sdbus::Error &e) {
DBUS_LOG_METHOD_CALL_ERROR(this, "Free", e);
}
unregisterProxy();
}
protected: