Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:45

0001 # Unit test configuration file for MessageLogger service:
0002 # Suppression based on minimum severity level.
0003 # (This is part A - verify that the suppression occurs.
0004 # u35 is part B - verifying that suppression does not occur if any threshold
0005 # is low enough to not suppress.)
0006 #
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 process = cms.Process("TEST")
0011 
0012 import FWCore.Framework.test.cmsExceptionsFatal_cff
0013 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0014 
0015 process.load("FWCore.MessageService.test.Services_cff")
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     cerr = cms.untracked.PSet(
0019         enable = cms.untracked.bool(False)
0020     ),
0021     files = cms.untracked.PSet(
0022         u34_warnings = cms.untracked.PSet(
0023             threshold = cms.untracked.string('WARNING'),
0024             noTimeStamps = cms.untracked.bool(True)
0025         )
0026     )
0027 )
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(2)
0031 )
0032 
0033 process.source = cms.Source("EmptySource")
0034 
0035 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_W")
0036 
0037 process.p = cms.Path(process.sendSomeMessages)