Skip to content

Commit

Permalink
fix: logging typo from enable to optIn (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Dec 13, 2023
1 parent ac3f27d commit fc8aac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export abstract class PostHogCoreStateless {
***/
protected enqueue(type: string, _message: any, options?: PosthogCaptureOptions): void {
if (this.optedOut) {
this._events.emit(type, `Library is disabled. Not sending event. To re-enable, call posthog.enable()`)
this._events.emit(type, `Library is disabled. Not sending event. To re-enable, call posthog.optIn()`)
return
}

Expand Down

0 comments on commit fc8aac6

Please sign in to comment.