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
612 lockTree();612 lockTree();
613 VoxelPacketData packetData(packetIsCompressed);613 VoxelPacketData packetData(packetIsCompressed);
614 packetData.loadFinalizedContent(dataAt, sectionLength);614 packetData.loadFinalizedContent(dataAt, sectionLength);
615 if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) {615 if (Application::getInstance()->getLogger()->extraDebugging()) {
616 qDebug("VoxelSystem::parseData() ... Got Packet Section"616 qDebug("VoxelSystem::parseData() ... Got Packet Section"
617 " color:%s compressed:%s sequence: %u flight:%d usec size:%d data:%d"617 " color:%s compressed:%s sequence: %u flight:%d usec size:%d data:%d"
618 " subsection:%d sectionLength:%d uncompressed:%d\n",618 " subsection:%d sectionLength:%d uncompressed:%d\n",
@@ -973,7 +973,7 @@ int VoxelSystem::updateNodeInArrays(VoxelTreeElement* node, bool reuseIndex, boo · 354 unmodified lines
973 // not render these Voxels. We need to think about ways to keep the entire scene intact but maybe lower quality973 // not render these Voxels. We need to think about ways to keep the entire scene intact but maybe lower quality
974 // possibly shifting down to lower LOD or something. This debug message is to help identify, if/when/how this974 // possibly shifting down to lower LOD or something. This debug message is to help identify, if/when/how this
975 // state actually occurs.975 // state actually occurs.
976 if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) {976 if (Application::getInstance()->getLogger()->extraDebugging()) {
977 qDebug("OHHHH NOOOOOO!!!! updateNodeInArrays() BAILING (_voxelsInWriteArrays >= _maxVoxels)\n");977 qDebug("OHHHH NOOOOOO!!!! updateNodeInArrays() BAILING (_voxelsInWriteArrays >= _maxVoxels)\n");
978 }978 }
979 return 0;979 return 0;
@@ -1964,7 +1964,7 @@ void VoxelSystem::hideOutOfView(bool forceFullFrustum) { · 984 unmodified lines
1964 setupNewVoxelsForDrawingSingleNode(DONT_BAIL_EARLY);1964 setupNewVoxelsForDrawingSingleNode(DONT_BAIL_EARLY);
1965 }1965 }
1966 1966
1967 bool extraDebugDetails = Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging);1967 bool extraDebugDetails = Application::getInstance()->getLogger()->extraDebugging();
1968 if (extraDebugDetails) {1968 if (extraDebugDetails) {
1969 qDebug("hideOutOfView() scanned=%ld removed=%ld inside=%ld intersect=%ld outside=%ld\n", 1969 qDebug("hideOutOfView() scanned=%ld removed=%ld inside=%ld intersect=%ld outside=%ld\n",
1970 args.nodesScanned, args.nodesRemoved, args.nodesInside, 1970 args.nodesScanned, args.nodesRemoved, args.nodesInside,