Add more debug logs

This commit is contained in:
Eric Bailey
2024-09-05 18:05:33 -05:00
parent 6ab64aca49
commit e9588753f5
+2
View File
@@ -67,6 +67,7 @@ export function beginResolveGeolocation() {
if (geolocation) { if (geolocation) {
device.set(['geolocation'], geolocation) device.set(['geolocation'], geolocation)
emitGeolocationUpdate(geolocation) emitGeolocationUpdate(geolocation)
logger.debug(`geolocation: resolved`, {geolocation})
} else { } else {
// endpoint should throw on all failures, this is insurance // endpoint should throw on all failures, this is insurance
throw new Error(`geolocation: nothing returned from initial request`) throw new Error(`geolocation: nothing returned from initial request`)
@@ -85,6 +86,7 @@ export function beginResolveGeolocation() {
if (geolocation) { if (geolocation) {
device.set(['geolocation'], geolocation) device.set(['geolocation'], geolocation)
emitGeolocationUpdate(geolocation) emitGeolocationUpdate(geolocation)
logger.debug(`geolocation: resolved`, {geolocation})
} else { } else {
// endpoint should throw on all failures, this is insurance // endpoint should throw on all failures, this is insurance
throw new Error(`geolocation: nothing returned from retries`) throw new Error(`geolocation: nothing returned from retries`)