From 97038a71963c732dffb389ed7a746893633d1650 Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 9 Aug 2019 17:20:41 -0700 Subject: [PATCH] Fix tracing warning spam --- libraries/shared/src/Profile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/shared/src/Profile.cpp b/libraries/shared/src/Profile.cpp index 1ad7b0785b..420b4ee54a 100644 --- a/libraries/shared/src/Profile.cpp +++ b/libraries/shared/src/Profile.cpp @@ -39,6 +39,10 @@ Q_LOGGING_CATEGORY(trace_baker, "trace.baker") #endif static bool tracingEnabled() { + if (!DependencyManager::isSet()) { + return false; + } + // Cheers, love! The cavalry's here! auto tracer = DependencyManager::get(); return (tracer && tracer->isEnabled());