[gnome-shell/wip/rstrode/rhel-7.9: 86/86] weather: Don't spew messages when geolocation is unavailable




commit f16dc90681f801ee85bb2705a92a87f064427ee6
Author: Ray Strode <rstrode redhat com>
Date:   Wed Oct 14 15:40:05 2020 -0400

    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 398f1fd528..3086188def 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]