Add more debug logs
This commit is contained in:
@@ -67,6 +67,7 @@ export function beginResolveGeolocation() {
|
||||
if (geolocation) {
|
||||
device.set(['geolocation'], geolocation)
|
||||
emitGeolocationUpdate(geolocation)
|
||||
logger.debug(`geolocation: resolved`, {geolocation})
|
||||
} else {
|
||||
// endpoint should throw on all failures, this is insurance
|
||||
throw new Error(`geolocation: nothing returned from initial request`)
|
||||
@@ -85,6 +86,7 @@ export function beginResolveGeolocation() {
|
||||
if (geolocation) {
|
||||
device.set(['geolocation'], geolocation)
|
||||
emitGeolocationUpdate(geolocation)
|
||||
logger.debug(`geolocation: resolved`, {geolocation})
|
||||
} else {
|
||||
// endpoint should throw on all failures, this is insurance
|
||||
throw new Error(`geolocation: nothing returned from retries`)
|
||||
|
||||
Reference in New Issue
Block a user