add ccid to log
This commit is contained in:
@@ -199,13 +199,14 @@ def start_book():
|
||||
try:
|
||||
modem.get_ccid()
|
||||
# find the contact with ccid
|
||||
contact = [contact for contact in contacts if contact.ccid.replace("F", "") == modem.ccid.replace("F", "")]
|
||||
contact = [contact for contact in contacts if
|
||||
contact.ccid.replace("F", "") == modem.ccid.replace("F", "")]
|
||||
if len(contact) > 0:
|
||||
modem.phone_number = contact[0].phone
|
||||
modem.contact = contact[0]
|
||||
else:
|
||||
logger.info("contact not found for this ccid")
|
||||
error_msg = "slot({}),sim({})".format(i, current_sim_position)
|
||||
logger.info("contact not found for this ccid:{}".format(modem.ccid))
|
||||
error_msg = "slot({}):sim({}):ccid({})".format(i, current_sim_position, modem.ccid)
|
||||
oracle_log_sender.send_contact_not_found(error_msg)
|
||||
modem.modem.close()
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user