From 4b262f60c802738eb7e6843d12f4642b81bd15f7 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 14 Feb 2017 22:29:23 -1000 Subject: [PATCH] Additional resource logging --- Editor/ProjectResourceFactoryBase.cpp | 12 ++++++++++-- hecl | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Editor/ProjectResourceFactoryBase.cpp b/Editor/ProjectResourceFactoryBase.cpp index 6b4c311cc..eb0b89db0 100644 --- a/Editor/ProjectResourceFactoryBase.cpp +++ b/Editor/ProjectResourceFactoryBase.cpp @@ -434,6 +434,7 @@ hecl::ProjectPath ProjectResourceFactoryBase::GetCookedPath(const hecl::ProjectP bool ProjectResourceFactoryBase::SyncCook(const hecl::ProjectPath& working) { + Log.report(logvisor::Warning, _S("sync-cooking %s"), working.getRelativePath().c_str()); return m_clientProc.syncCook(working, m_cookSpec.get(), hecl::SharedBlenderToken); } @@ -452,10 +453,17 @@ CFactoryFnReturn ProjectResourceFactoryBase::BuildSync(const SObjectTag& tag, { u32 length = fr->length(); std::unique_ptr memBuf = fr->readUBytes(length); - return m_factoryMgr.MakeObjectFromMemory(tag, std::move(memBuf), length, false, paramXfer, selfRef); + CFactoryFnReturn ret = + m_factoryMgr.MakeObjectFromMemory(tag, std::move(memBuf), length, false, paramXfer, selfRef); + Log.report(logvisor::Info, "sync-built %.4s %08X", + tag.type.toString().c_str(), u32(tag.id)); + return ret; } - return m_factoryMgr.MakeObject(tag, *fr, paramXfer, selfRef); + CFactoryFnReturn ret = m_factoryMgr.MakeObject(tag, *fr, paramXfer, selfRef); + Log.report(logvisor::Info, "sync-built %.4s %08X", + tag.type.toString().c_str(), u32(tag.id)); + return ret; } void ProjectResourceFactoryBase::AsyncTask::EnsurePath(const urde::SObjectTag& tag, diff --git a/hecl b/hecl index 720f17521..3f93118da 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit 720f175217cb5ebeb987497317f34fa50e9ab55f +Subproject commit 3f93118da852508ae40c79d2ba87fedaed1013aa