fix logging

This commit is contained in:
Timur A. Fatkhullin 2025-01-14 11:33:05 +03:00
parent 8c319780dc
commit cf3e34f88c

View File

@ -1326,11 +1326,13 @@ void RaptorEagleCCD::initAttrComm()
addAttribute(
CAMERA_ATTR_FITS_TEMPLATE,
[this]() {
logTrace("Return current FITS-image header template filename as {}", _currentTemplateFile);
logTrace("Return current FITS-image header template filename as {}",
_currentTemplateFile.size() ? _currentTemplateFile : "<empty string>");
return _currentTemplateFile;
},
[this](const std::string& filename) {
logDebug("Set current FITS-image header template filename to {}", filename);
logDebug("Set current FITS-image header template filename to {}",
filename.size() ? filename : "<empty string>");
_currentTemplateFile = filename;
});