1var logQueue=[];var LOG_TIMEOUT=1500;var geoIpData="0,0";var API_URL="https://hq11i8fsog.execute-api.eu-west-2.amazonaws.com/live/log";var LOGGING_KEY="6AIW4ugKDh2L1bETUsOGs3ahsUGEQILFaf0mfp8I";var logTimer=null;var isClicLogDisabled=true;var EXCLUDE_CODES=["S4CP06","S4CP13"];window.onerror=function(errorMsg,url,lineNumber,column,errorObj){if(errorMsg.indexOf("Script error.")>-1){return}var name=errorObj&&errorObj.name?errorObj.name:"Error";_logError(name,errorMsg,url,lineNumber)};window.onload=function(){logTimer=null;if(window.geoip2){window.geoip2.city(function(response){geoIpData=escape(response.location.latitude)+","+escape(response.location.longitude)},function(error){window.console.log("GEOIP FETCH FAIL")})}};function generateError(){throw new Error("Whoops!")}function logError(name,errorMsg,url){_logError(name,errorMsg,url,0)}function _isIgnoreError(code,url){for(var j=0;j<EXCLUDE_CODES.length;j++){if(code.indexOf(EXCLUDE_CODES[j])>-1){return true}}return false}function _logError(name,errorMsg,url,lineNumber){console.log("_logError",name,errorMsg,url);if(!isClicLogDisabled&&!_isIgnoreError(name,url)){logQueue.push(_createErrorLog(name,errorMsg,url,lineNumber));if(!logTimer){logTimer=setTimeout(function(){_sendLogs(true);clearTimeout(logTimer);logTimer=null},LOG_TIMEOUT)}}}function _getISODateToday(){var date=new Date;var year=date.getFullYear();var month=date.getMonth()+1;var dt=date.getDate();if(dt<10){dt="0"+dt}if(month<10){month="0"+month}return year+"-"+month+"-"+dt}function _createErrorLog(errorCode,errorMessage,source,lineNo){return{created:Math.round((new Date).getTime()/1e3),date:_getISODateToday(),errorCode:errorCode?errorCode:"No Error Code",errorMessage:errorMessage?errorMessage:"No Error Message",errorLocation:window.location.href,source:source?source:"No Source",lineNumber:lineNo?lineNo:"No Line Number",geoLocation:geoIpData}}function _sendLogs(isAsynch){window.console.log("sending errror logs to server: "+logQueue.length);var xhr=new XMLHttpRequest;xhr.onreadystatechange=function(){if(xhr.readyState===xhr.DONE){if(xhr.status===200){console.log(xhr.response)}}};xhr.open("POST",API_URL,isAsynch);xhr.setRequestHeader("content-type","application/json");xhr.setRequestHeader("x-api-key",LOGGING_KEY);xhr.send(JSON.stringify(logQueue));logQueue=[]}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.