Skip to content

Commit

Permalink
chore: logging on start (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Apr 29, 2024
1 parent fa49c57 commit dbb7c66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/heatmaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { document, window } from './utils/globals'
import { getParentElement, isTag } from './autocapture-utils'
import { HEATMAPS_ENABLED_SERVER_SIDE } from './constants'
import { isUndefined } from './utils/type-utils'
import { logger } from './utils/logger'

type HeatmapEventBuffer =
| {
Expand Down Expand Up @@ -56,6 +57,7 @@ export class Heatmaps {

public startIfEnabled(): void {
if (this.isEnabled && !this._initialized) {
logger.info('[heatmaps] Heatmaps enabled, starting...')
this._setupListeners()
}
}
Expand Down

0 comments on commit dbb7c66

Please sign in to comment.