From f68581a3aef1aff0df0881248cf7440ede29a806 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Fri, 3 May 2013 12:26:26 +0200 Subject: Improved log levels of trace control --- src/object/object.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/object/object.cpp b/src/object/object.cpp index 3459644..5df4393 100644 --- a/src/object/object.cpp +++ b/src/object/object.cpp @@ -7325,7 +7325,7 @@ bool CObject::GetTraceDown() CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("GetTraceDown() invalid m_motion class!\n"); + GetLogger()->Trace("GetTraceDown() invalid m_motion class!\n"); return false; } return mv->GetTraceDown(); @@ -7337,7 +7337,7 @@ void CObject::SetTraceDown(bool bDown) CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("SetTraceDown() invalid m_motion class!\n"); + GetLogger()->Trace("SetTraceDown() invalid m_motion class!\n"); return; } mv->SetTraceDown(bDown); @@ -7349,7 +7349,7 @@ int CObject::GetTraceColor() CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("GetTraceColor() invalid m_motion class!\n"); + GetLogger()->Trace("GetTraceColor() invalid m_motion class!\n"); return 0; } return mv->GetTraceColor(); @@ -7361,7 +7361,7 @@ void CObject::SetTraceColor(int color) CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("SetTraceColor() invalid m_motion class!\n"); + GetLogger()->Trace("SetTraceColor() invalid m_motion class!\n"); return; } mv->SetTraceColor(color); @@ -7373,7 +7373,7 @@ float CObject::GetTraceWidth() CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("GetTraceWidth() invalid m_motion class!\n"); + GetLogger()->Trace("GetTraceWidth() invalid m_motion class!\n"); return 0.0f; } return mv->GetTraceWidth(); @@ -7385,7 +7385,7 @@ void CObject::SetTraceWidth(float width) CMotionVehicle* mv = dynamic_cast(m_motion); if (mv == nullptr) { - GetLogger()->Debug("SetTraceWidth() invalid m_motion class!\n"); + GetLogger()->Trace("SetTraceWidth() invalid m_motion class!\n"); return; } mv->SetTraceWidth(width); -- cgit v1.2.3-1-g7c22