Skip to content

Commit f153b1e

Browse files
Printing log when we find a default CCDB entry
1 parent 5b96c9a commit f153b1e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Common/Utils/include/CommonUtils/NameConf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class NameConf : public o2::conf::ConfigurableParamHelper<NameConf>
6767
static constexpr std::string_view CCDBMETA = "ccdb_meta"; // hardcoded
6868
static constexpr std::string_view CCDBQUERY = "ccdb_query"; // hardcoded
6969
static constexpr std::string_view CCDBRunTag = "runNumber";
70+
static constexpr std::string_view CCDBDefaultEntry = "default";
7071

7172
// Filename to store geometry file
7273
static std::string getGeomFileName(const std::string_view prefix = "");

Framework/Core/src/CCDBHelpers.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ auto populateCacheWith(std::shared_ptr<CCDBFetcherHelper> const& helper,
211211
// FIXME: I should send a dummy message.
212212
continue;
213213
}
214+
// printing in case we find a default entry
215+
if (headers.find("default") != headers.end()) {
216+
LOGP(detail, "******** Default entry used for {} ********", path);
217+
}
214218
if (etag.empty()) {
215219
helper->mapURL2UUID[path] = headers["ETag"]; // update uuid
216220
auto cacheId = allocator.adoptContainer(output, std::move(v), true, header::gSerializationMethodCCDB);

0 commit comments

Comments
 (0)