Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed support for tag #13

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Removed tag support

Sending tags for now causing console warnings for MIME type.
  • Loading branch information
Jayant Varshney
Jayant Varshney committed Mar 2, 2015
commit ffe2b403530ffb6260174d591f99624815273b1e
@@ -15,9 +15,8 @@

function LogglyTracker() {
this.key = false;
this.sendConsoleErrors = false;
this.tag = 'jslogger';
}
this.sendConsoleErrors = false;
}

function setKey(tracker, key) {
tracker.key = key;
@@ -49,17 +48,12 @@
}
}

function setTag(tracker, tag){
tracker.tag = tag;
}

function setInputUrl(tracker) {
tracker.inputUrl = LOGGLY_INPUT_PREFIX
+ (tracker.logglyCollectorDomain || LOGGLY_COLLECTOR_DOMAIN)
+ '/inputs/'
+ tracker.key
+ '/tag/'+tracker.tag+'/'
+ LOGGLY_INPUT_SUFFIX;
+ LOGGLY_INPUT_SUFFIX;
}

LogglyTracker.prototype = {
@@ -95,15 +89,11 @@
return;
}

if(data.sendConsoleErrors !== undefined) {
setSendConsoleError(self, data.sendConsoleErrors);
}
if(data.sendConsoleErrors !== undefined) {
setSendConsoleError(self, data.sendConsoleErrors);
}

if(data.tag){
setTag(self, data.tag);
}

if(data.logglyKey) {
if(data.logglyKey) {
setKey(self, data.logglyKey);
return;
}
@@ -128,7 +118,7 @@

try {
var im = new Image(),
q = 'PLAINTEXT=' + encodeURIComponent(JSON.stringify(data));
q = 'PLAINTEXT=' + encodeURIComponent(JSON.stringify(data));
im.src = this.inputUrl + q;
} catch (ex) {
if (window && window.console && typeof window.console.log === 'function') {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.