Skip to content

Commit

Permalink
Printing log when we find a default CCDB entry
Browse files Browse the repository at this point in the history
  • Loading branch information
chiarazampolli authored Apr 27, 2022
1 parent 5b96c9a commit f153b1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Common/Utils/include/CommonUtils/NameConf.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class NameConf : public o2::conf::ConfigurableParamHelper<NameConf>
static constexpr std::string_view CCDBMETA = "ccdb_meta"; // hardcoded
static constexpr std::string_view CCDBQUERY = "ccdb_query"; // hardcoded
static constexpr std::string_view CCDBRunTag = "runNumber";
static constexpr std::string_view CCDBDefaultEntry = "default";

// Filename to store geometry file
static std::string getGeomFileName(const std::string_view prefix = "");
Expand Down
4 changes: 4 additions & 0 deletions Framework/Core/src/CCDBHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ auto populateCacheWith(std::shared_ptr<CCDBFetcherHelper> const& helper,
// FIXME: I should send a dummy message.
continue;
}
// printing in case we find a default entry
if (headers.find("default") != headers.end()) {
LOGP(detail, "******** Default entry used for {} ********", path);
}
if (etag.empty()) {
helper->mapURL2UUID[path] = headers["ETag"]; // update uuid
auto cacheId = allocator.adoptContainer(output, std::move(v), true, header::gSerializationMethodCCDB);
Expand Down

0 comments on commit f153b1e

Please sign in to comment.