Skip to content

Commit 961c557

Browse files
authored
Add logging for aod-metadata-tables option handling
1 parent ce6aad0 commit 961c557

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Common/TableProducer/Converters/tracksExtraV002Converter.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,19 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
116116
auto workflow = WorkflowSpec{};
117117
// Check if 'aod-metadata-tables' option is available in the config context
118118
if (cfgc.options().hasOption("aod-metadata-tables")) {
119+
LOG(debug) << "'aod-metadata-tables' option found in the config context, checking for existing tables";
119120
// Get the list of tables from the config context
120121
const std::vector<std::string> tables = cfgc.options().get<std::vector<std::string>>("aod-metadata-tables");
121122
// If the table is already found, do not add the converter and spawner
122123
if (std::find(tables.begin(), tables.end(), "O2trackextra_002") == tables.end()) {
124+
LOG(debug) << "Adding TracksExtraV002Converter and TracksExtraSpawner to the workflow";
123125
workflow.push_back(adaptAnalysisTask<TracksExtraV002Converter>(cfgc));
124126
workflow.push_back(adaptAnalysisTask<TracksExtraSpawner>(cfgc));
127+
} else {
128+
LOG(debug) << "Table O2trackextra_002 already found, not adding converter and spawner";
125129
}
126130
} else {
131+
LOG(debug) << "'aod-metadata-tables' option not found in the config context, adding converter and spawner by default";
127132
workflow.push_back(adaptAnalysisTask<TracksExtraV002Converter>(cfgc));
128133
workflow.push_back(adaptAnalysisTask<TracksExtraSpawner>(cfgc));
129134
}

0 commit comments

Comments
 (0)