Skip to content

Commit

Permalink
try and make logs visible for test cafe output
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Jun 24, 2022
1 parent 7455891 commit f6006cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/posthog-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,11 @@ PostHogLib.prototype.capture = addOptOutCheckPostHogLib(function (event_name, pr
}

data = _.copyAndTruncateStrings(data, options._noTruncate ? null : this.get_config('properties_string_max_length'))
const jsonData = JSON.stringify(data)

if (this.get_config('debug')) {
logger.log('PostHog.js send', data)
logger.log('PostHog.js send', jsonData)
}
const jsonData = JSON.stringify(data)

const url = this.get_config('api_host') + (options.endpoint || '/e/')

Expand Down

0 comments on commit f6006cc

Please sign in to comment.