mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Added back logging as traces for level_2_chunks
This commit is contained in:
parent
4906800a22
commit
969267b661
4 changed files with 21 additions and 26 deletions
|
|
@ -341,7 +341,7 @@ AwsLevel2ChunksDataProvider::Impl::ListObjects()
|
|||
{
|
||||
return {true, newObjects, totalObjects};
|
||||
}
|
||||
logger_->debug("ListObjects");
|
||||
logger_->trace("ListObjects");
|
||||
lastTimeListed_ = now;
|
||||
|
||||
const std::string prefix = radarSite_ + "/";
|
||||
|
|
@ -356,7 +356,7 @@ AwsLevel2ChunksDataProvider::Impl::ListObjects()
|
|||
if (outcome.IsSuccess())
|
||||
{
|
||||
auto& scans = outcome.GetResult().GetCommonPrefixes();
|
||||
// logger_->debug("Found {} scans", scans.size());
|
||||
logger_->trace("Found {} scans", scans.size());
|
||||
|
||||
if (scans.size() > 0)
|
||||
{
|
||||
|
|
@ -513,7 +513,7 @@ bool AwsLevel2ChunksDataProvider::Impl::LoadScan(Impl::ScanRecord& scanRecord)
|
|||
|
||||
bool hasNew = false;
|
||||
auto& chunks = listOutcome.GetResult().GetContents();
|
||||
// logger_->debug("Found {} new chunks.", chunks.size());
|
||||
logger_->trace("Found {} new chunks.", chunks.size());
|
||||
for (const auto& chunk : chunks)
|
||||
{
|
||||
const std::string& key = chunk.GetKey();
|
||||
|
|
@ -726,7 +726,7 @@ std::pair<size_t, size_t> AwsLevel2ChunksDataProvider::Refresh()
|
|||
|
||||
timer.stop();
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers) format to 6 digits
|
||||
// logger_->debug("Refresh() in {}", timer.format(6, "%ws"));
|
||||
logger_->debug("Refresh() in {}", timer.format(6, "%ws"));
|
||||
return std::make_pair(newObjects, totalObjects);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ Ar2vFile::GetElevationScan(rda::DataBlockType dataBlockType,
|
|||
float elevation,
|
||||
std::chrono::system_clock::time_point time) const
|
||||
{
|
||||
// logger_->debug("GetElevationScan: {} degrees", elevation);
|
||||
logger_->trace("GetElevationScan: {} degrees", elevation);
|
||||
|
||||
std::shared_ptr<rda::ElevationScan> elevationScan = nullptr;
|
||||
float elevationCut = 0.0f;
|
||||
|
|
@ -273,7 +273,7 @@ bool Ar2vFile::LoadData(std::istream& is)
|
|||
|
||||
std::size_t Ar2vFileImpl::DecompressLDMRecords(std::istream& is)
|
||||
{
|
||||
// logger_->debug("Decompressing LDM Records");
|
||||
logger_->trace("Decompressing LDM Records");
|
||||
|
||||
std::size_t numRecords = 0;
|
||||
|
||||
|
|
@ -321,22 +321,22 @@ std::size_t Ar2vFileImpl::DecompressLDMRecords(std::istream& is)
|
|||
++numRecords;
|
||||
}
|
||||
|
||||
// logger_->debug("Decompressed {} LDM Records", numRecords);
|
||||
logger_->trace("Decompressed {} LDM Records", numRecords);
|
||||
|
||||
return numRecords;
|
||||
}
|
||||
|
||||
void Ar2vFileImpl::ParseLDMRecords()
|
||||
{
|
||||
// logger_->debug("Parsing LDM Records");
|
||||
logger_->trace("Parsing LDM Records");
|
||||
|
||||
// std::size_t count = 0;
|
||||
std::size_t count = 0;
|
||||
|
||||
for (auto it = rawRecords_.begin(); it != rawRecords_.end(); it++)
|
||||
{
|
||||
std::stringstream& ss = *it;
|
||||
|
||||
// logger_->trace("Record {}", count++);
|
||||
logger_->trace("Record {}", count++);
|
||||
|
||||
ParseLDMRecord(ss);
|
||||
}
|
||||
|
|
@ -445,7 +445,7 @@ void Ar2vFileImpl::ProcessRadarData(
|
|||
|
||||
void Ar2vFileImpl::IndexFile()
|
||||
{
|
||||
// logger_->debug("Indexing file");
|
||||
logger_->trace("Indexing file");
|
||||
|
||||
for (auto& elevationCut : radarData_)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue