wiglenet: Shorten cache hit debug log message

This commit is contained in:
Teemu Ikonen
2023-02-21 14:05:27 +02:00
parent c6762ecfb8
commit 02df5ec923

View File

@@ -489,9 +489,9 @@ class WiglenetResolver(object):
if netd is None: if netd is None:
return False return False
else: else:
restype = ("'Network not found'" restype = ("'Not found'"
if netd.get('trilateratedLatitude') is None else 'location') if netd.get('trilateratedLatitude') is None else 'Location')
log.debug(f'Got cached {restype} result for {netid}') log.debug(f'{restype} cache hit, {netid}')
if netd.get('trilateratedLatitude') is None: if netd.get('trilateratedLatitude') is None:
return None return None