cellid: Reduce debug logging, always use upper case radiotype
This commit is contained in:
@@ -29,7 +29,7 @@ class CellIdResolver(object):
|
|||||||
cur = self.con.cursor()
|
cur = self.con.cursor()
|
||||||
# radiotype is not required in observations
|
# radiotype is not required in observations
|
||||||
radio = radiotype.upper() if radiotype is not None else 'GSM'
|
radio = radiotype.upper() if radiotype is not None else 'GSM'
|
||||||
log.debug(f'search_network: Got {radio} {mcc} {net} {area} {cell}')
|
# log.debug(f'search_network: Got {radio} {mcc} {net} {area} {cell}')
|
||||||
net = cur.execute("""
|
net = cur.execute("""
|
||||||
SELECT * FROM cell
|
SELECT * FROM cell
|
||||||
WHERE radio = ? AND mcc = ? AND net = ? AND area = ? AND cell = ?;
|
WHERE radio = ? AND mcc = ? AND net = ? AND area = ? AND cell = ?;
|
||||||
@@ -45,7 +45,8 @@ class CellIdResolver(object):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _resolve_cell(self, radio, opc, lac, cid) -> Optional[dict]:
|
def _resolve_cell(self, radiotype, opc, lac, cid) -> Optional[dict]:
|
||||||
|
radio = radiotype.upper()
|
||||||
mcc, mnc = opc_to_mcc_mnc(opc)
|
mcc, mnc = opc_to_mcc_mnc(opc)
|
||||||
if mcc is None:
|
if mcc is None:
|
||||||
log.debug(f'opc to mcc,mnc conversion failed for {radio} {opc}_{lac}_{cid}')
|
log.debug(f'opc to mcc,mnc conversion failed for {radio} {opc}_{lac}_{cid}')
|
||||||
|
Reference in New Issue
Block a user