mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Suppress tracing log spam when tracing is not active
This commit is contained in:
parent
748c8cdc58
commit
2662dc9b4e
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ private:
|
|||
};
|
||||
|
||||
inline void traceEvent(const QLoggingCategory& category, const QString& name, EventType type, const QString& id = "", const QVariantMap& args = {}, const QVariantMap& extra = {}) {
|
||||
if (!DependencyManager::isSet<Tracer>()) {
|
||||
return;
|
||||
}
|
||||
const auto& tracer = DependencyManager::get<Tracer>();
|
||||
if (tracer) {
|
||||
tracer->traceEvent(category, name, type, id, args, extra);
|
||||
|
|
Loading…
Reference in a new issue