silence output by default in release mode for things we can't do much about on a live server... TODO: @cekis can we find a nice way of silencing or outputting java stack dumps into a file instead of the console?

This commit is contained in:
DarthArgus
2016-12-09 21:02:00 +00:00
parent bf396ac2a2
commit 802af495dc
12 changed files with 64 additions and 46 deletions
@@ -71,7 +71,7 @@ Floor * FloorManager::createFloor ( const char * floorMeshFilename, Object const
if(!pMesh)
{
WARNING(true, ("Could not find floor mesh %s", floorMeshFilename));
DEBUG_WARNING(true, ("Could not find floor mesh %s", floorMeshFilename));
return nullptr;
}
@@ -134,7 +134,7 @@ void ArrangementDescriptor::load_0000(Iff &iff)
// convert slot name to SlotId
const SlotId slotId = SlotIdManager::findSlotId(slotName);
if (slotId == SlotId::invalid)
WARNING(true, ("ArrangementDescriptor [%s] specified invalid slot name [%s], ignoring", m_name->getString(), slotName.getString()));
DEBUG_WARNING(true, ("ArrangementDescriptor [%s] specified invalid slot name [%s], ignoring", m_name->getString(), slotName.getString()));
else
arrangement.push_back(slotId);
}
@@ -449,11 +449,11 @@ void CellProperty::initialize(const PortalProperty &portalProperty, int cellInde
if (cellTemplate.getFloorName())
{
m_floor = FloorManager::createFloor(cellTemplate.getFloorName(),&getOwner(),nullptr,false);
WARNING(!m_floor, ("Cell %s could not load floor %s", cellTemplate.getAppearanceName(), cellTemplate.getFloorName()));
DEBUG_WARNING(!m_floor, ("Cell %s could not load floor %s", cellTemplate.getAppearanceName(), cellTemplate.getFloorName()));
}
else
{
WARNING(true, ("Cell %s has no floor", cellTemplate.getAppearanceName()));
DEBUG_WARNING(true, ("Cell %s has no floor", cellTemplate.getAppearanceName()));
}
m_cellIndex = cellIndex;