Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing log when we find a default CCDB entry #8659

Merged
merged 2 commits into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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