diff --git a/Source/ols/Private/Systems/OLSAssetManagerStartupJob.cpp b/Source/ols/Private/Systems/OLSAssetManagerStartupJob.cpp index fc4f84f..8da5897 100644 --- a/Source/ols/Private/Systems/OLSAssetManagerStartupJob.cpp +++ b/Source/ols/Private/Systems/OLSAssetManagerStartupJob.cpp @@ -3,13 +3,16 @@ #include "Systems/OLSAssetManagerStartupJob.h" +#include "OLSLog.h" + +DEFINE_LOG_CATEGORY(LogOLSAssetManagerStartupJob); + TSharedPtr FOLSAssetManagerStartupJob::DoJob() const { const double jobStartTime = FPlatformTime::Seconds(); TSharedPtr handle; - // @Todo replace this with our custom log. - // UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" starting"), *JobName); + OLS_LOG_NO_WORLD(LogOLSAssetManagerStartupJob, Display, TEXT("Startup job \"%s\" starting"), *JobName); JobFunc(*this, handle); if (handle.IsValid()) @@ -19,8 +22,8 @@ TSharedPtr FOLSAssetManagerStartupJob::DoJob() const handle->BindUpdateDelegate(FStreamableUpdateDelegate()); } - // @Todo replace this with our custom log. - // UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" took %.2f seconds to complete"), *JobName, FPlatformTime::Seconds() - jobStartTime); + OLS_LOG_NO_WORLD(LogOLSAssetManagerStartupJob, Display, TEXT("Startup job \"%s\" took %.2f seconds to complete"), + *JobName, FPlatformTime::Seconds() - jobStartTime); return handle; } diff --git a/Source/ols/Public/Systems/OLSAssetManagerStartupJob.h b/Source/ols/Public/Systems/OLSAssetManagerStartupJob.h index 82f979a..641637f 100644 --- a/Source/ols/Public/Systems/OLSAssetManagerStartupJob.h +++ b/Source/ols/Public/Systems/OLSAssetManagerStartupJob.h @@ -4,6 +4,7 @@ #include "Engine/StreamableManager.h" +DECLARE_LOG_CATEGORY_EXTERN(LogOLSAssetManagerStartupJob, Verbose, All); DECLARE_DELEGATE_OneParam(FOLSAssetManagerStartupJobSubstepProgress, float /*newProgress*/);