From 6abeac91cedb86434ed13504a44861f9f77fdf5b Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Tue, 29 Aug 2023 15:14:07 +0530 Subject: [PATCH] Add log messages for freeing service browsers and entry groups. --- internal/platform/implementation/linux/avahi.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/platform/implementation/linux/avahi.h b/internal/platform/implementation/linux/avahi.h index eff5f233..7c60c961 100644 --- a/internal/platform/implementation/linux/avahi.h +++ b/internal/platform/implementation/linux/avahi.h @@ -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: