1- // LOG LEVELS ---
2-
1+ // LOG LEVELS
32let VERB = 1 ;
43let DBUG = 2 ;
54let INFO = 3 ;
@@ -18,7 +17,6 @@ let https_everywhere_blacklist = {};
1817// domains for which there is at least one blacklisted URL
1918let https_blacklist_domains = { } ;
2019
21- //
2220const CI = Components . interfaces ;
2321const CC = Components . classes ;
2422const CU = Components . utils ;
@@ -333,7 +331,9 @@ HTTPSEverywhere.prototype = {
333331 loadContext = channel . loadGroup . notificationCallbacks
334332 . getInterface ( CI . nsILoadContext ) ;
335333 } catch ( e ) {
336- this . log ( NOTE , "no loadGroup notificationCallbacks for "
334+ // Lots of requests have no notificationCallbacks, mostly background
335+ // ones like OCSP checks or smart browsing fetches.
336+ this . log ( DBUG , "no loadGroup notificationCallbacks for "
337337 + channel . URI . spec + ": " + e ) ;
338338 return null ;
339339 }
@@ -835,7 +835,7 @@ function https_everywhereLog(level, str) {
835835 threshold = WARN ;
836836 }
837837 if ( level >= threshold ) {
838- var levelName = [ "" , "VERB" , "DBUG" , "INFO" , "NOTE" , "WARN" ] [ + level ] ;
838+ var levelName = [ "" , "VERB" , "DBUG" , "INFO" , "NOTE" , "WARN" ] [ level ] ;
839839 var prefix = "HTTPS Everywhere " + levelName + ": " ;
840840 // dump() prints to browser stdout. That's sometimes undesireable,
841841 // so only do it when a pref is set (running from test.sh enables
0 commit comments