ATLAS Offline Software
Loading...
Searching...
No Matches
DataQuality/DQDefects/python/__init__.py
Go to the documentation of this file.
1# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
2
3"""
4Authors: Peter Waller <peter.waller@cern.ch> and "Peter Onyisi" <peter.onyisi@cern.ch>
5
6Please see https://twiki.cern.ch/twiki/bin/viewauth/Atlas/DQDefects
7
8The main way to use all of the code found in this module can be found in the
9"db" module.
10"""
11
12from .constants import (DEFECT_IOV, DEFAULT_CONNECTION_STRING,
13 PARENT_FOLDERSET,
14 DEFECTS_FOLDER, DEFECT_FOLDER_DESC,
15 DEFECT_LOGIC_FOLDER, DEFECT_LOGIC_FOLDER_DESC,
16 DEFECT_LOGIC_TAG_FORMAT)
17from .db import DefectsDB
18import logging
19
20# Add a NullHandler to the DQDefects logger so that we don't get complaints
21# if there are no log handlers defined in client applications.
22
23# Logging is the responsibility of the client application!
24class NullHandler(logging.Handler):
25 def emit(self, record):
26 pass
27logging.getLogger("DQDefects").addHandler(NullHandler())
28
29__all__ = ['DefectsDB', 'DEFECT_IOV',
30 'DEFAULT_CONNECTION_STRING', 'PARENT_FOLDERSET',
31 'DEFECTS_FOLDER', 'DEFECT_FOLDER_DESC',
32 'DEFECT_LOGIC_FOLDER', 'DEFECT_LOGIC_FOLDER_DESC',
33 'DEFECT_LOGIC_TAG_FORMAT' ]