summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 1a2c7a5f..582bc613 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -62,11 +62,11 @@ ResourceManager::~ResourceManager()
}
resources.clear();
-#ifdef __DEBUG
- std::cout << "ResourceManager::~ResourceManager() cleaned up " <<
+ std::stringstream msg;
+ msg << "ResourceManager::~ResourceManager() cleaned up " <<
danglingReferences << " references to " << danglingResources <<
- " resources\n";
-#endif
+ " resources";
+ log(msg.str());
}
Resource* ResourceManager::get(const E_RESOURCE_TYPE &type,