aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-04-04 18:48:24 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2017-05-15 16:02:35 +0200
commit82389f2628f6c2e6e6237c201cf7d224bceffdcd (patch)
treec232209a1e16ca547fcb54edd88f8ae2e4264ead
parent190a106ceabf3c2a7ce4d7af2d46580dd518ceb6 (diff)
python: fix Null logger
-rwxr-xr-xopenbsc/contrib/twisted_ipa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/contrib/twisted_ipa.py b/openbsc/contrib/twisted_ipa.py
index c143852d2..e6d7b1a16 100755
--- a/openbsc/contrib/twisted_ipa.py
+++ b/openbsc/contrib/twisted_ipa.py
@@ -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 twisted.internet.protocol import ReconnectingClientFactory
@@ -318,8 +318,8 @@ class IPAFactory(ReconnectingClientFactory):
self.log = log
else:
self.log = logging.getLogger('IPAFactory')
- log.setLevel(logging.CRITICAL)
- log.addHandler(logging.NullHandler)
+ self.log.setLevel(logging.CRITICAL)
+ self.log.addHandler(logging.NullHandler)
def clientConnectionFailed(self, connector, reason):
"""