Skip to content

Commit

Permalink
feat(ecs): reduce world log level from DEBUG to TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Feb 14, 2024
1 parent dad5c23 commit a6b9f64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/ecs/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void World::relate(Entity from, Entity to, const reflection::Type& type, void* v
// Get or create the table and insert a new row.
auto& table = mTables.sparseRelation().create(tableId, mTypes);
table.insert(from.index, to.index, value);
CUBOS_DEBUG("Added relation {} from entity {} to entity {}", type.name(), from, to);
CUBOS_TRACE("Added relation {} from entity {} to entity {}", type.name(), from, to);
}

void World::unrelate(Entity from, Entity to, const reflection::Type& type)
Expand Down Expand Up @@ -252,7 +252,7 @@ void World::unrelate(Entity from, Entity to, const reflection::Type& type)
auto& table = mTables.sparseRelation().at(tableId);
if (table.erase(from.index, to.index))
{
CUBOS_DEBUG("Removed relation {} from entity {} to entity {}", type.name(), from, to);
CUBOS_TRACE("Removed relation {} from entity {} to entity {}", type.name(), from, to);

if (mTypes.isTreeRelation(dataType))
{
Expand Down Expand Up @@ -508,7 +508,7 @@ auto World::Components::add(const reflection::Type& type, void* value) -> Compon
}
}

CUBOS_DEBUG("Added component {} to entity {}", type.name(), mEntity, mEntity);
CUBOS_TRACE("Added component {} to entity {}", type.name(), mEntity, mEntity);
return *this;
}

Expand Down Expand Up @@ -567,7 +567,7 @@ auto World::Components::remove(const reflection::Type& type) -> Components&
}
}

CUBOS_DEBUG("Removed component {} from entity {}", type.name(), mEntity);
CUBOS_TRACE("Removed component {} from entity {}", type.name(), mEntity);
return *this;
}

Expand Down

0 comments on commit a6b9f64

Please sign in to comment.