aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-13 16:59:19 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-06-13 17:08:24 +0200
commit910f3a11072ce2f77926a1d16c89b8369b977953 (patch)
tree3ce453819fbbef7b7e962d73e31cac27a90fa7cb
parentcc5b5a29875a9d1f36d9cac34fed2a3a206210c9 (diff)
ofono_client: Improve log around Scan() failure
-rw-r--r--src/osmo_gsm_tester/ofono_client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/ofono_client.py b/src/osmo_gsm_tester/ofono_client.py
index 45a4294..4deff9e 100644
--- a/src/osmo_gsm_tester/ofono_client.py
+++ b/src/osmo_gsm_tester/ofono_client.py
@@ -418,9 +418,11 @@ class Modem(log.Origin):
# the registering succeeds while we are still waiting for Scan() to finsih.
# So far the easiest seems to check if we are now registered and
# otherwise schedule a scan again.
- self.err('Scan() failed:', e)
+ self.err('Scan() failed, retrying if needed:', e)
if not self.is_connected(mcc_mnc):
self.schedule_scan_register(mcc_mnc)
+ else:
+ self.log('Already registered with network', mcc_mnc)
def scan_cb_register_automatic(self, scanned_operators, mcc_mnc):
self.dbg('scanned operators: ', scanned_operators);