Skip to content

Commit

Permalink
Fixed some prints of the logger device
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Feb 17, 2025
1 parent 128a628 commit 048381d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,11 @@ bool YarpRobotLoggerDevice::addChannel(const std::string& nameKey,
if (metadataNames.empty() || vectorSize != metadataNames.size())
{
log()->warn("The metadata names for channel {} are empty or the size of the metadata names "
"is different from the vector size. The default metadata will be used.",
nameKey);
"is different from the vector size. The default metadata will be used."
"Vector size: {}. Metadata names size: {}",
nameKey,
vectorSize,
metadataNames.size());
if (!m_bufferManager.addChannel({nameKey, {vectorSize, 1}}))
{
log()->error("Failed to add the channel in buffer manager named: {}", nameKey);
Expand Down Expand Up @@ -1887,6 +1890,7 @@ bool YarpRobotLoggerDevice::saveCallback(const std::string& fileName,
}

log()->info("{} Saved video {}_{}_{} in {}.",
logPrefix,
fileName,
camera,
"rgb",
Expand Down Expand Up @@ -1935,6 +1939,7 @@ bool YarpRobotLoggerDevice::saveCallback(const std::string& fileName,
}

log()->info("{} Saved video {}_{}_{} in {}.",
logPrefix,
fileName,
camera,
"rgb",
Expand All @@ -1951,6 +1956,7 @@ bool YarpRobotLoggerDevice::saveCallback(const std::string& fileName,
}

log()->info("{} Saved video {}_{}_{} in {}.",
logPrefix,
fileName,
camera,
"depth",
Expand Down

0 comments on commit 048381d

Please sign in to comment.