From 6bece13a32ff40b69ed4d9acf380c210d00a70e8 Mon Sep 17 00:00:00 2001 From: Kyle Cooley Date: Tue, 21 Aug 2018 15:41:05 -0400 Subject: [PATCH] Use new Log class for error message --- apps/opencs/view/render/actor.cpp | 5 ++--- components/sceneutil/visitor.cpp | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/opencs/view/render/actor.cpp b/apps/opencs/view/render/actor.cpp index b816c1504..a61d31de6 100644 --- a/apps/opencs/view/render/actor.cpp +++ b/apps/opencs/view/render/actor.cpp @@ -1,10 +1,9 @@ #include "actor.hpp" -#include - #include #include +#include #include #include #include @@ -46,7 +45,7 @@ namespace CSVRender } catch (std::exception& e) { - std::cout << "Caught exception: " << e.what() << std::endl; + Log(Debug::Error) << "Exception in Actor::update(): " << e.what(); } } diff --git a/components/sceneutil/visitor.cpp b/components/sceneutil/visitor.cpp index 07be1608e..536331132 100644 --- a/components/sceneutil/visitor.cpp +++ b/components/sceneutil/visitor.cpp @@ -1,12 +1,12 @@ #include "visitor.hpp" -#include - #include #include #include +#include + #include namespace SceneUtil @@ -74,7 +74,7 @@ namespace SceneUtil for (RemoveVec::iterator it = mToRemove.begin(); it != mToRemove.end(); ++it) { if (!it->second->removeChild(it->first)) - std::cerr << "error removing " << it->first->getName() << std::endl; + Log(Debug::Error) << "error removing " << it->first->getName(); } }