Skip to content

Commit fc03e5b

Browse files
authored
Failure to retrieve MO and QO should produce a warning (#1776)
Seeing how retrieveMO and retrieveQO are used by postprocessing tasks, it is sometimes fine if we do not manage to retrieve an object, thus we make it a warning.
1 parent 1527498 commit fc03e5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/src/CcdbDatabase.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ TObject* CcdbDatabase::retrieveTObject(std::string path, std::map<std::string, s
312312
// we try first to load a TFile
313313
auto* object = ccdbApi->retrieveFromTFileAny<TObject>(path, metadata, timestamp, headers);
314314
if (object == nullptr) {
315-
ILOG(Error, Support) << "We could NOT retrieve the object " << path << " with timestamp " << timestamp << "." << ENDM;
315+
ILOG(Warning, Support) << "We could NOT retrieve the object " << path << " with timestamp " << timestamp << "." << ENDM;
316316
return nullptr;
317317
}
318318
ILOG(Debug, Support) << "Retrieved object " << path << " with timestamp " << timestamp << ENDM;
@@ -323,7 +323,7 @@ void* CcdbDatabase::retrieveAny(const type_info& tinfo, const string& path, cons
323323
{
324324
auto* object = ccdbApi->retrieveFromTFile(tinfo, path, metadata, timestamp, headers, "", createdNotAfter, createdNotBefore);
325325
if (object == nullptr) {
326-
ILOG(Error, Support) << "We could NOT retrieve the object " << path << " with timestamp " << timestamp << "." << ENDM;
326+
ILOG(Warning, Support) << "We could NOT retrieve the object " << path << " with timestamp " << timestamp << "." << ENDM;
327327
return nullptr;
328328
}
329329
ILOG(Debug, Support) << "Retrieved object " << path << " with timestamp " << timestamp << ENDM;

0 commit comments

Comments
 (0)