Pau Espin Pedrol has uploaded this change for review. ( 
https://gerrit.osmocom.org/9348


Change subject: event_loop: Log parameters during wait timeout exception
......................................................................

event_loop: Log parameters during wait timeout exception

Change-Id: I1cf104392bfd11ad263264738eb4d8fa60550a5d
---
M src/osmo_gsm_tester/event_loop.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/48/9348/1

diff --git a/src/osmo_gsm_tester/event_loop.py 
b/src/osmo_gsm_tester/event_loop.py
index 64a110d..0fe0940 100644
--- a/src/osmo_gsm_tester/event_loop.py
+++ b/src/osmo_gsm_tester/event_loop.py
@@ -109,7 +109,7 @@
     def wait(self, log_obj, condition, *condition_args, timeout=300, 
timestep=1, **condition_kwargs):
         if not self.wait_no_raise(log_obj, condition, condition_args, 
condition_kwargs, timeout, timestep):
             log.ctx(log_obj)
-            raise log.Error('Wait timeout')
+            raise log.Error('Wait timeout', condition=condition, 
timeout=timeout, timestemp=timestep)

     def sleep(self, log_obj, seconds):
         assert seconds > 0.

--
To view, visit https://gerrit.osmocom.org/9348
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1cf104392bfd11ad263264738eb4d8fa60550a5d
Gerrit-Change-Number: 9348
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>

Reply via email to