History

replace LogDisplay with File logger

- added abstract logger interface

Stojce Slavkovski committed 12 years ago

Commit ee1eb251 parent 3d44ab913 files · +150 −59Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 13 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+3−3
@@ -612,7 +612,7 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 611 unmodified lines
612612 lockTree();
613613 VoxelPacketData packetData(packetIsCompressed);
614614 packetData.loadFinalizedContent(dataAt, sectionLength);
615− if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) {
615+ if (Application::getInstance()->getLogger()->extraDebugging()) {
616616 qDebug("VoxelSystem::parseData() ... Got Packet Section"
617617 " color:%s compressed:%s sequence: %u flight:%d usec size:%d data:%d"
618618 " subsection:%d sectionLength:%d uncompressed:%d\n",
@@ -973,7 +973,7 @@ int VoxelSystem::updateNodeInArrays(VoxelTreeElement* node, bool reuseIndex, boo · 354 unmodified lines
973973 // not render these Voxels. We need to think about ways to keep the entire scene intact but maybe lower quality
974974 // possibly shifting down to lower LOD or something. This debug message is to help identify, if/when/how this
975975 // state actually occurs.
976− if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) {
976+ if (Application::getInstance()->getLogger()->extraDebugging()) {
977977 qDebug("OHHHH NOOOOOO!!!! updateNodeInArrays() BAILING (_voxelsInWriteArrays >= _maxVoxels)\n");
978978 }
979979 return 0;
@@ -1964,7 +1964,7 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 984 unmodified lines
19641964 setupNewVoxelsForDrawingSingleNode(DONT_BAIL_EARLY);
19651965 }
19661966
1967− bool extraDebugDetails = Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging);
1967+ bool extraDebugDetails = Application::getInstance()->getLogger()->extraDebugging();
19681968 if (extraDebugDetails) {
19691969 qDebug("hideOutOfView() scanned=%ld removed=%ld inside=%ld intersect=%ld outside=%ld\n",
19701970 args.nodesScanned, args.nodesRemoved, args.nodesInside,