Use new Log class for error message

pull/1944/head
Kyle Cooley 6 years ago committed by Andrei Kortunov
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…
Cancel
Save