Skip to content

Commit

Permalink
feat: add debug startup log message (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c authored Jul 24, 2024
1 parent a9c43e7 commit fdbe1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ export class PostHog {
// if any instance on the page has debug = true, we set the
// global debug to be true
Config.DEBUG = Config.DEBUG || this.config.debug
if (Config.DEBUG) {
// eslint-disable-next-line no-console
console.log('[PostHog.js] Starting in debug mode', this)
}

this._sync_opt_out_with_persistence()

Expand Down

0 comments on commit fdbe1be

Please sign in to comment.