[PATCH] openbsc[master]: python: fix Null logger

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Tue Apr 4 16:49:29 UTC 2017


Review at  https://gerrit.osmocom.org/2226

python: fix Null logger

Change-Id: Ie120273eabbc670e9f19ba365508688a810a2773
Related: SYS#3028
---
M openbsc/contrib/twisted_ipa.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/26/2226/1

diff --git a/openbsc/contrib/twisted_ipa.py b/openbsc/contrib/twisted_ipa.py
index c143852..5b48ed5 100755
--- a/openbsc/contrib/twisted_ipa.py
+++ b/openbsc/contrib/twisted_ipa.py
@@ -318,8 +318,8 @@
             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):
         """

-- 
To view, visit https://gerrit.osmocom.org/2226
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie120273eabbc670e9f19ba365508688a810a2773
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list