From f16dc90681f801ee85bb2705a92a87f064427ee6 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 14 Oct 2020 15:40:05 -0400 Subject: [PATCH] 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. --- js/misc/weather.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/misc/weather.js b/js/misc/weather.js index 398f1fd52..3086188de 100644 --- a/js/misc/weather.js +++ b/js/misc/weather.js @@ -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);