Comment out most spammy log traces

This commit is contained in:
DankParrot 2020-08-13 18:42:21 -07:00
parent eec887a052
commit ea2ff1b8fd
3 changed files with 8 additions and 8 deletions

View File

@ -224,7 +224,7 @@ namespace Feather
{
const ChunkSection& sect = chunk->sections[i];
Log::Trace("Chunk: Got Section {} with local palette size {}", i, sect.localPalette.Size());
//Log::Trace("Chunk: Got Section {} with local palette size {}", i, sect.localPalette.Size());
sectionsBits |= 1 << i;
@ -251,7 +251,7 @@ namespace Feather
sections.Write<uint64_t>(sect.blockStates[i]);
}
Log::Trace("Section bits: {:#b}", sectionsBits);
//Log::Trace("Section bits: {:#b}", sectionsBits);
chunkData.WriteVarInt(sectionsBits);

View File

@ -9,7 +9,7 @@ namespace Feather
using namespace NBT;
CompoundTag level = nbt->GetCompound("Level");
Log::Trace("Loading chunk ({}, {}) from NBT", pos.x, pos.z);
//Log::Trace("Loading chunk ({}, {}) from NBT", pos.x, pos.z);
if (pos.x != level.Get<int>("xPos") || pos.z != level.Get<int>("zPos"))
{
@ -31,11 +31,11 @@ namespace Feather
int8_t y = sectData.Get<int8_t>("Y");
if (y < 0 || y >= NUM_SECTIONS) {
Log::Trace("Skipping section {}", y);
//Log::Trace("Skipping section {}", y);
continue;
}
Log::Trace("Loading section {}/{} at Y {}", n + 1, NUM_SECTIONS, y);
//Log::Trace("Loading section {}/{} at Y {}", n + 1, NUM_SECTIONS, y);
if (n >= NUM_SECTIONS)
{
@ -70,7 +70,7 @@ namespace Feather
// TODO: could use Add()
section->localPalette.AddMapping(i, id);
Log::Trace(" {} -> {} {}", i, id, name);
//Log::Trace(" {} -> {} {}", i, id, name);
}
// Block States

View File

@ -124,7 +124,7 @@ namespace Feather
int8_t compressionType = lengthBytes[4];
Log::Trace("Loading chunk: Length: {}. Compression: {}", length, compressionType);
//Log::Trace("Loading chunk: Length: {}. Compression: {}", length, compressionType);
char* chunkData = new char[length + 1];
chunkStream->read(chunkData, length);
@ -132,7 +132,7 @@ namespace Feather
auto nbt = std::make_unique<NBT::CompoundTag>(chunkData, length);
if (!*nbt) return nullptr;
std::cout << *nbt << "\n";
//std::cout << *nbt << "\n";
return std::make_unique<Chunk>(pos, std::move(nbt));
}