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:
return False
else:
restype = ("'Network not found'"
if netd.get('trilateratedLatitude') is None else 'location')
log.debug(f'Got cached {restype} result for {netid}')
restype = ("'Not found'"
if netd.get('trilateratedLatitude') is None else 'Location')
log.debug(f'{restype} cache hit, {netid}')
if netd.get('trilateratedLatitude') is None:
return None