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

LOG-8039 update packages #59

Merged
merged 18 commits into from Apr 6, 2020

fix sending splats

  • Loading branch information
alestrunda committed Apr 2, 2020
commit 583e02eeed88f6ce114b2afc96ddf44c4b54ffa3
@@ -129,7 +129,12 @@ Loggly.prototype.log = function(meta, callback) {

const splats = data[Symbol.for('splat')];
if (splats && splats.length > 0) {
data.details = splats;
data.details =
typeof splats[0] === 'object' ? splats.slice(1, splats.length) : splats; //ignore the first object, it's already included in root
if (splats[0].details !== undefined) {
//overwrites the original details prop, so we need to include it
data.details = [{ details: splats[0].details }, ...data.details];
}
}

const self = this;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.