mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 21:40:42 +00:00
Use new Log class for error message
This commit is contained in:
parent
97ac0a92dd
commit
6bece13a32
@ -1,10 +1,9 @@
|
||||
#include "actor.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <osg/Group>
|
||||
#include <osg/Node>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/esm/mappings.hpp>
|
||||
#include <components/misc/resourcehelpers.hpp>
|
||||
#include <components/resource/resourcemanager.hpp>
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
#include "visitor.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <osg/Drawable>
|
||||
#include <osg/MatrixTransform>
|
||||
|
||||
#include <osgParticle/ParticleSystem>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
||||
#include <components/misc/stringops.hpp>
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user