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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18781 )
Change subject: log: Fix OriginLoopError generated in log.Error from testenv.poll()
......................................................................
log: Fix OriginLoopError generated in log.Error from testenv.poll()
Change-Id: Iea80d06a30346533e4ecec338b03c72d1f1067ae
---
M src/osmo_gsm_tester/core/log.py
1 file changed, 6 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/81/18781/1
diff --git a/src/osmo_gsm_tester/core/log.py b/src/osmo_gsm_tester/core/log.py
index 2cf1af0..184294c 100644
--- a/src/osmo_gsm_tester/core/log.py
+++ b/src/osmo_gsm_tester/core/log.py
@@ -386,11 +386,12 @@
f = f.f_back
if (origin is not None) and (log_ctx_obj is not None):
- log_ctx_obj.highest_ancestor()._set_parent(origin)
- p = log_ctx_obj
- while p:
- p._set_log_category(origin._log_category)
- p = p._parent
+ log_ctx_highest_ancestor = log_ctx_obj.highest_ancestor()
+ # If Both end up in same ancestor it means they are connected to the
+ # same tree, so no need to connect them, we'll use log_ctx_obj
+ # specific path in that case.
+ if log_ctx_highest_ancestor != origin.highest_ancestor():
+ log_ctx_highest_ancestor._set_parent(origin)
if log_ctx_obj is not None:
return log_ctx_obj
# may return None
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/18781
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Change-Id: Iea80d06a30346533e4ecec338b03c72d1f1067ae
Gerrit-Change-Number: 18781
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200611/33b22938/attachment.htm>