Skip to content

Commit d0a3766

Browse files
committed
logs for e2e tests
1 parent 9ecdd01 commit d0a3766

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/posthog-core.ts

+12-5
Original file line numberDiff line numberDiff line change
@@ -1794,11 +1794,18 @@ export class PostHog {
17941794
}
17951795
if (this.config.debug) {
17961796
Config.DEBUG = true
1797-
logger.info('set_config', {
1798-
config,
1799-
oldConfig,
1800-
newConfig: { ...this.config },
1801-
})
1797+
logger.info(
1798+
'set_config',
1799+
JSON.stringify(
1800+
{
1801+
config,
1802+
oldConfig,
1803+
newConfig: { ...this.config },
1804+
},
1805+
null,
1806+
2
1807+
)
1808+
)
18021809
}
18031810

18041811
this.sessionRecording?.startIfEnabledOrStop()

0 commit comments

Comments
 (0)