weather: Don't spew messages when geolocation is unavailable

It's not a requirement that the xdg portal is installed, so we
shouldn't log an error when it's not.

Furthermore, we shouldn't log an error when geolocation is disabled
in settings.

This commit mutes the log spew.
This commit is contained in:
Ray Strode 2020-10-14 15:40:05 -04:00
parent 3f56182374
commit f16dc90681

View file

@ -31,15 +31,7 @@ var WeatherClient = new Lang.Class({
this._weatherAuthorized = false;
this._permStore = new PermissionStore.PermissionStore((proxy, error) => {
if (error) {
log('Failed to connect to permissionStore: ' + error.message);
return;
}
this._permStore.LookupRemote('gnome', 'geolocation', (res, error) => {
if (error)
log('Error looking up permission: ' + error.message);
let [perms, data] = error ? [{}, null] : res;
let params = ['gnome', 'geolocation', false, data, perms];
this._onPermStoreChanged(this._permStore, '', params);