diff base/ById.cpp @ 1761:ee7fd2c01d87 by-id

Work on management of alignment-related models
author Chris Cannam
date Fri, 12 Jul 2019 13:57:42 +0100
parents b679bae1627b
children 4fec4527e50e
line wrap: on
line diff
--- a/base/ById.cpp	Mon Jul 08 10:08:08 2019 +0100
+++ b/base/ById.cpp	Fri Jul 12 13:57:42 2019 +0100
@@ -70,6 +70,8 @@
         if (id == IdAlloc::NO_ID) {
             throw std::logic_error("item id should never be NO_ID");
         }
+        SVCERR << "ById::add(#" << id << ") of type "
+               << typeid(*item.get()).name() << endl;
         QMutexLocker locker(&m_mutex);
         if (m_items.find(id) != m_items.end()) {
             SVCERR << "ById::add: item with id " << id
@@ -87,7 +89,7 @@
         if (id == IdAlloc::NO_ID) {
             return;
         }
-        SVCERR << "ById::release(" << id << ")" << endl;
+        SVCERR << "ById::release(#" << id << ")" << endl;
         QMutexLocker locker(&m_mutex);
         if (m_items.find(id) == m_items.end()) {
             SVCERR << "ById::release: unknown item id " << id << endl;