[ox] Cleanup some messy trace points

This commit is contained in:
2021-03-10 20:17:45 -06:00
parent 55a4f2451e
commit 2ebce7713d
2 changed files with 6 additions and 8 deletions

View File

@@ -122,10 +122,10 @@ Result<FileStat> PassThroughFS::stat(const char *path) {
const auto p = m_path / stripSlash(path);
uint8_t type = std::filesystem::is_directory(p, ec) ?
FileType_Directory : FileType_NormalFile;
oxTrace("PassThroughFS::stat") << ec.message().c_str() << path;
oxTrace("ox::fs::PassThroughFS::stat") << ec.message().c_str() << path;
uint64_t size = type == FileType_Directory ? 0 : std::filesystem::file_size(p, ec);
oxTrace("PassThroughFS::stat") << ec.message().c_str() << path;
oxTrace("PassThroughFS::stat::size") << path << size;
oxTrace("ox::fs::PassThroughFS::stat") << ec.message().c_str() << path;
oxTrace("ox::fs::PassThroughFS::stat::size") << path << size;
return {{0, 0, size, type}, OxError(ec.value())};
}