summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo_gsm_tester/log.py')
-rw-r--r--src/osmo_gsm_tester/log.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/log.py b/src/osmo_gsm_tester/log.py
index 3af7bbe..c4a9861 100644
--- a/src/osmo_gsm_tester/log.py
+++ b/src/osmo_gsm_tester/log.py
@@ -332,8 +332,9 @@ class Origin:
def __enter__(self):
if not self.set_child_of(Origin._global_current_origin):
- return
+ return self
Origin._global_current_origin = self
+ return self
def __exit__(self, *exc_info):
rc = None