Skip to content

Commit 19ed6da

Browse files
committed
Fix fetching partition id and add some debug output
1 parent 8b9b7ad commit 19ed6da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Utilities/EPNMonitoring/src/EPNstderrMonitor.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ struct EPNstderrMonitor : fair::mq::Device {
226226

227227
std::string partition = "";
228228
try {
229-
fConfig->GetProperty<std::string>("environment_id", "");
229+
partition = fConfig->GetProperty<std::string>("environment_id", "");
230+
printf("Got environment_id: %s\n", partition.c_str());
230231
} catch (...) {
232+
printf("Error getting environment_id\n");
231233
}
232234

233235
gEPNMonitor = std::make_unique<EPNMonitor>(path, infoLogger, 0, partition);
@@ -237,7 +239,9 @@ struct EPNstderrMonitor : fair::mq::Device {
237239
int runNumber = 0;
238240
try {
239241
runNumber = atoi(fConfig->GetProperty<std::string>("runNumber", "").c_str());
242+
printf("Got runNumber: %d\n", runNumber);
240243
} catch (...) {
244+
printf("Error getting runNumber\n");
241245
}
242246
gEPNMonitor->setRunNr(runNumber);
243247
}

0 commit comments

Comments
 (0)