mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
removing loggly
This commit is contained in:
@@ -14,8 +14,6 @@ export function trackPage() {
|
||||
}
|
||||
|
||||
function handleError(methodName, xhr, status, err) {
|
||||
var LTracker = global.window.LTracker || [];
|
||||
|
||||
var e = null;
|
||||
try {
|
||||
e = JSON.parse(xhr.responseText);
|
||||
@@ -39,7 +37,6 @@ function handleError(methodName, xhr, status, err) {
|
||||
|
||||
console.error(msg); //eslint-disable-line no-console
|
||||
console.error(e); //eslint-disable-line no-console
|
||||
LTracker.push(msg);
|
||||
|
||||
track('api', 'api_weberror', methodName, 'message', msg);
|
||||
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
|
||||
export var config = {
|
||||
|
||||
// Loggly configs
|
||||
LogglyWriteKey: '',
|
||||
LogglyConsoleErrors: true,
|
||||
|
||||
// Segment configs
|
||||
SegmentWriteKey: '',
|
||||
|
||||
|
||||
@@ -55,17 +55,6 @@
|
||||
window.config.ProfileHeight = '{{ .Props.ProfileHeight }}'
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
if (window.config.LogglyWriteKey != null && window.config.LogglyWriteKey !== "") {
|
||||
var LTracker = LTracker || [];
|
||||
window.LTracker = LTracker;
|
||||
LTracker.push({'logglyKey': window.config.LogglyWriteKey, 'sendConsoleErrors' : window.config.LogglyConsoleErrors });
|
||||
} else {
|
||||
window.LTracker = [];
|
||||
console.warn("config.js missing LogglyWriteKey, Loggly analytics is not reporting");
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
if (window.config.SegmentWriteKey != null && window.config.SegmentWriteKey !== "") {
|
||||
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1";
|
||||
|
||||
Reference in New Issue
Block a user