From d1677b2db08f71a5bddedd9659cc5a66f325f47f Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 13 May 2013 15:07:36 +0200 Subject: Core/Logging: Performance-related tweaks to logging system All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros. Memleak fix --- src/server/collision/DynamicTree.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/collision/DynamicTree.cpp') diff --git a/src/server/collision/DynamicTree.cpp b/src/server/collision/DynamicTree.cpp index c70a4b78a03..aebcee0d689 100644 --- a/src/server/collision/DynamicTree.cpp +++ b/src/server/collision/DynamicTree.cpp @@ -165,16 +165,16 @@ struct DynamicTreeIntersectionCallback_WithLogger uint32 phase_mask; DynamicTreeIntersectionCallback_WithLogger(uint32 phasemask) : did_hit(false), phase_mask(phasemask) { - sLog->outDebug(LOG_FILTER_MAPS, "Dynamic Intersection log"); + TC_LOG_DEBUG(LOG_FILTER_MAPS, "Dynamic Intersection log"); } bool operator()(const G3D::Ray& r, const GameObjectModel& obj, float& distance) { - sLog->outDebug(LOG_FILTER_MAPS, "testing intersection with %s", obj.name.c_str()); + TC_LOG_DEBUG(LOG_FILTER_MAPS, "testing intersection with %s", obj.name.c_str()); bool hit = obj.intersectRay(r, distance, true, phase_mask); if (hit) { did_hit = true; - sLog->outDebug(LOG_FILTER_MAPS, "result: intersects"); + TC_LOG_DEBUG(LOG_FILTER_MAPS, "result: intersects"); } return hit; } -- cgit v1.2.3