hardware: add some debugging when pushing stuff to sysrepo
This is mainly for the ietf-hardware sensors/metrics and the associated
alarms and alarm inventory entries.
Change-Id: Ie7a8dbaaeda680ff1fd0cb49dcbe3510f2999ce8
diff --git a/src/ietf-hardware/sysrepo/Sysrepo.cpp b/src/ietf-hardware/sysrepo/Sysrepo.cpp
index 7381b70..84a0c20 100644
--- a/src/ietf-hardware/sysrepo/Sysrepo.cpp
+++ b/src/ietf-hardware/sysrepo/Sysrepo.cpp
@@ -140,6 +140,7 @@
discards.reserve(deletedComponents.size());
std::copy(deletedComponents.begin(), deletedComponents.end(), std::back_inserter(discards));
+ m_log->trace("updating HW state ({} entries)", hwStateValues.size());
utils::valuesPush(hwStateValues, {}, discards, m_session, ::sysrepo::Datastore::Operational);
/* Publish sideloaded alarms */