mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +02:00
Fix tracing warning spam
This commit is contained in:
parent
be534f2127
commit
97038a7196
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ Q_LOGGING_CATEGORY(trace_baker, "trace.baker")
|
|||
#endif
|
||||
|
||||
static bool tracingEnabled() {
|
||||
if (!DependencyManager::isSet<tracing::Tracer>()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cheers, love! The cavalry's here!
|
||||
auto tracer = DependencyManager::get<tracing::Tracer>();
|
||||
return (tracer && tracer->isEnabled());
|
||||
|
|
Loading…
Reference in a new issue