python: fix Null logger
Change-Id: Ie120273eabbc670e9f19ba365508688a810a2773 Related: SYS#3028
This commit is contained in:
parent
7f3724e04d
commit
2d92162a6b
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "0.5" # bump this on every non-trivial change
|
__version__ = "0.6" # bump this on every non-trivial change
|
||||||
|
|
||||||
from ipa import Ctrl, IPA
|
from ipa import Ctrl, IPA
|
||||||
from twisted.internet.protocol import ReconnectingClientFactory
|
from twisted.internet.protocol import ReconnectingClientFactory
|
||||||
|
@ -318,8 +318,8 @@ class IPAFactory(ReconnectingClientFactory):
|
||||||
self.log = log
|
self.log = log
|
||||||
else:
|
else:
|
||||||
self.log = logging.getLogger('IPAFactory')
|
self.log = logging.getLogger('IPAFactory')
|
||||||
log.setLevel(logging.CRITICAL)
|
self.log.setLevel(logging.CRITICAL)
|
||||||
log.addHandler(logging.NullHandler)
|
self.log.addHandler(logging.NullHandler)
|
||||||
|
|
||||||
def clientConnectionFailed(self, connector, reason):
|
def clientConnectionFailed(self, connector, reason):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue