Add more debug logs
This commit is contained in:
@@ -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`)
|
||||||
|
|||||||
Reference in New Issue
Block a user