diff --git a/lib/hijack/wrap_session.js b/lib/hijack/wrap_session.js index 33fb3dbf..19816963 100644 --- a/lib/hijack/wrap_session.js +++ b/lib/hijack/wrap_session.js @@ -116,10 +116,7 @@ wrapSession = function(sessionProto) { Kadira.tracer.endLastEvent(kadiraInfo.trace); Kadira.tracer.event(kadiraInfo.trace, 'error', {error: error}); } else { - var isForced = Kadira.tracer.endLastEvent(kadiraInfo.trace); - if (isForced) { - console.warn('Kadira endevent forced complete', JSON.stringify(kadiraInfo.trace.events)); - }; + Kadira.tracer.endLastEvent(kadiraInfo.trace); Kadira.tracer.event(kadiraInfo.trace, 'complete'); } diff --git a/lib/hijack/wrap_subscription.js b/lib/hijack/wrap_subscription.js index 1c47bac2..11e2829f 100644 --- a/lib/hijack/wrap_subscription.js +++ b/lib/hijack/wrap_subscription.js @@ -23,10 +23,7 @@ wrapSubscription = function(subscriptionProto) { //then we have some problems, that's why we are checking this //eg:- Accounts.createUser if(kadiraInfo && this._subscriptionId == kadiraInfo.trace.id) { - var isForced = Kadira.tracer.endLastEvent(kadiraInfo.trace); - if (isForced) { - console.warn('Kadira endevent forced complete', JSON.stringify(kadiraInfo.trace.events)); - }; + Kadira.tracer.endLastEvent(kadiraInfo.trace); Kadira.tracer.event(kadiraInfo.trace, 'complete'); var trace = Kadira.tracer.buildTrace(kadiraInfo.trace); }