ATLAS Offline Software
SuppressLogging.py
Go to the documentation of this file.
1 svcMgr.MessageSvc.setWarning += {
2  "ClassIDSvc",
3  "PoolSvc",
4  "AthDictLoaderSvc",
5  "AthenaPoolAddressProviderSvc",
6  "ProxyProviderSvc",
7  "DBReplicaSvc",
8  "MetaDataSvc",
9  "MetaDataStore",
10  "AthenaPoolCnvSvc",
11  "TagMetaDataStore",
12  "EventSelector",
13  #"ApplicationMgr", can't silence because otherwise ATN tests fail, see ATLINFR-1235
14  "CoreDumpSvc",
15  "AthMasterSeq",
16  "EventPersistencySvc",
17  "ActiveStoreSvc",
18  "AthenaEventLoopMgr",
19  "AthOutSeq",
20  "AthRegSeq"}
21 
22 #also silence storegates if not dumping
23 if not hasattr(svcMgr.StoreGateSvc,"Dump") or StoreGateSvc.Dump is False:
24  svcMgr.MessageSvc.setWarning += ["StoreGateSvc"]
25 if hasattr(svcMgr,"InputMetaDataStore"):
26  if not hasattr(svcMgr.InputMetaDataStore,"Dump") or svcMgr.InputMetaDataStore.Dump==False:
27  svcMgr.MessageSvc.setWarning += ["InputMetaDataStore"]
28 
29 svcMgr.MessageSvc.setError += ["HistogramPersistencySvc"] #even stricter for HistogramPersistencySvc too .. gives a silly/harmless warning otherwise
30 
31 svcMgr.MessageSvc.setError += ["PoolSvc"] #even stricter for PoolSvc, to silence RootCollectionScehemeEditor warnings
32 
33 #do this to suppress logging from a reinitialize of the eventselector
34 for svc in svcMgr.MessageSvc.setWarning:
35  if hasattr(svcMgr,svc): getattr(svcMgr,svc).OutputLevel=WARNING
36 
37 for svc in svcMgr.MessageSvc.setError:
38  if hasattr(svcMgr,svc): getattr(svcMgr,svc).OutputLevel=ERROR
39 
40 
41 if not hasattr(svcMgr,"DBReplicaSvc"):
42  svcMgr += CfgMgr.DBReplicaSvc()
43 svcMgr.DBReplicaSvc.OutputLevel=WARNING
44