1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 06:41:08 +00:00

Use new Log class for error message

This commit is contained in:
Kyle Cooley 2018-08-21 15:41:05 -04:00 committed by Andrei Kortunov
parent 97ac0a92dd
commit 6bece13a32
2 changed files with 5 additions and 6 deletions

View File

@ -1,10 +1,9 @@
#include "actor.hpp" #include "actor.hpp"
#include <iostream>
#include <osg/Group> #include <osg/Group>
#include <osg/Node> #include <osg/Node>
#include <components/debug/debuglog.hpp>
#include <components/esm/mappings.hpp> #include <components/esm/mappings.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcemanager.hpp> #include <components/resource/resourcemanager.hpp>
@ -46,7 +45,7 @@ namespace CSVRender
} }
catch (std::exception& e) catch (std::exception& e)
{ {
std::cout << "Caught exception: " << e.what() << std::endl; Log(Debug::Error) << "Exception in Actor::update(): " << e.what();
} }
} }

View File

@ -1,12 +1,12 @@
#include "visitor.hpp" #include "visitor.hpp"
#include <iostream>
#include <osg/Drawable> #include <osg/Drawable>
#include <osg/MatrixTransform> #include <osg/MatrixTransform>
#include <osgParticle/ParticleSystem> #include <osgParticle/ParticleSystem>
#include <components/debug/debuglog.hpp>
#include <components/misc/stringops.hpp> #include <components/misc/stringops.hpp>
namespace SceneUtil namespace SceneUtil
@ -74,7 +74,7 @@ namespace SceneUtil
for (RemoveVec::iterator it = mToRemove.begin(); it != mToRemove.end(); ++it) for (RemoveVec::iterator it = mToRemove.begin(); it != mToRemove.end(); ++it)
{ {
if (!it->second->removeChild(it->first)) if (!it->second->removeChild(it->first))
std::cerr << "error removing " << it->first->getName() << std::endl; Log(Debug::Error) << "error removing " << it->first->getName();
} }
} }