ref(core): Adjust mechanism in captureConsoleIntegration
#17633
Merged
mechanism in captureConsoleIntegration
#17633