-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Move MessageLogger default configuration to be part of Process #35298
Conversation
@Dr15Jones What do you think? |
FWCore/ParameterSet/python/Config.py
Outdated
@@ -137,6 +138,7 @@ def __init__(self,name,*Mods): | |||
self.options = Process.defaultOptions_() | |||
self.maxEvents = Process.defaultMaxEvents_() | |||
self.maxLuminosityBlocks = Process.defaultMaxLuminosityBlocks_() | |||
self.MessageLogger = MessageLogger # intentionally not cloned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not cloning here means that in the following
process = cms.Process("Foo")
process.MessageLogger.SomeCategory = cms.untracked.PSet()
process.load('FWCore.MessageService.MessageLogger_cfi')
the process.load()
does not override the settings done before it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which, I'm assuming, is the desired behavior (to allow independent modifications of the MessageLogger in different packages).
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35298/25308
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages:
@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
I'm done with my initial review. |
fadc7d0
to
fc16ab2
Compare
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ad798a/18740/summary.html Comparison SummarySummary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35298/25403
|
Pull request #35298 was updated. @makortel, @smuzaffar, @Dr15Jones can you please check and sign again. |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ad798a/18771/summary.html Comparison SummaryThe workflows 140.53 have different files in step1_dasquery.log than the ones found in the baseline. You may want to check and retrigger the tests if necessary. You can check it in the "files" directory in the results of the comparisons Summary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
MessageLogger is one of the Services always available in the framework. Following the improved configuration validation already in python, this PR suggests to move the MessageLogger default configuration to be available in the
cms.Process
without any extra action. This change allows usingProcessModifier
s in any cff/cfi fragment to e.g. add new categories for which Info messages would be printed out (see e.g. discussion in #35117).Resolves cms-sw/framework-team#272
PR validation:
Framework unit tests run.