Skip to content

Commit

Permalink
Avoid ID collisions between ED and ES modules in MessageLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Jul 13, 2022
1 parent b656633 commit 731f637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FWCore/MessageService/plugins/MessageLogger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,8 @@ namespace edm {
if (label->empty() or (*label)[0] == '\0') {
label = &desc->type_;
}
messageDrop->setModuleWithPhase(desc->type_, *label, desc->id_, "@callESModule");
//make sure ES module IDs do not conflict with ED module IDs
messageDrop->setModuleWithPhase(desc->type_, *label, 1000000 + desc->id_, "@callESModule");
}
void MessageLogger::postESModule(eventsetup::EventSetupRecordKey const&, ESModuleCallingContext const&) {
MessageDrop* messageDrop = MessageDrop::instance();
Expand Down

0 comments on commit 731f637

Please sign in to comment.