summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/log.py
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-06 19:45:16 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-06 22:42:44 +0000
commitd3a33e393ed8aba2df26cf0d4473cf46c5182090 (patch)
tree7f454fd03f136b05f420ab027ade1c55124556e8 /src/osmo_gsm_tester/log.py
parentf15eaf95de326271eb2e1c4067c84d64458edb65 (diff)
cosmetic: whitespace in log.py
Diffstat (limited to 'src/osmo_gsm_tester/log.py')
-rw-r--r--src/osmo_gsm_tester/log.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/osmo_gsm_tester/log.py b/src/osmo_gsm_tester/log.py
index d662400..ede3b16 100644
--- a/src/osmo_gsm_tester/log.py
+++ b/src/osmo_gsm_tester/log.py
@@ -445,8 +445,6 @@ def exn_add_info(exc_info, origin, category=None):
exception.origins.add(origin)
return False
-
-
def log_exn(origin=None, category=None, exc_info=None):
if not (exc_info is not None and len(exc_info) == 3):
exc_info = sys.exc_info()
@@ -482,6 +480,7 @@ class Origins(list):
def __init__(self, origin=None):
if origin is not None:
self.add(origin)
+
def add(self, origin):
if hasattr(origin, 'name'):
origin_str = origin.name()
@@ -490,11 +489,11 @@ class Origins(list):
if origin_str is None:
raise RuntimeError('origin_str is None for %r' % origin)
self.insert(0, origin_str)
+
def __str__(self):
return '↪'.join(self)
-
def set_all_levels(level):
for target in LogTarget.all_targets:
target.set_all_levels(level)