mirror of
https://github.com/AEPKILL/devtools-detector.git
synced 2026-04-26 23:15:48 +03:00
[GH-ISSUE #51] Remix logs unusable from 500-item JSON object logged by performance.checker.ts #30
Labels
No labels
bug
bug
enhancement
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/devtools-detector#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jdempcy on GitHub (Nov 18, 2022).
Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/51
In Remix apps the console log of the repeated 500-item JSON object logged by performance.checker.ts is put into the server logs, rendering them unusable (since console.clear() does nothing there) filling up over 10,000 lines in every page load.
etc, looping over and over.
I have not been able to fix this by overriding devtoolsDetector.launch() as advised in another issue (of console clearing). That solution did not work. Is there a way to add an option to devtools-detector to disable this performance.checker.ts logging?
@AEPKILL commented on GitHub (Nov 22, 2022):
What is Remix? Can you provide a reproducible demo? Because I don't quite understand this demand.
@jdempcy commented on GitHub (Nov 28, 2022):
This is Remix: https://github.com/remix-run/remix/discussions/4599
For a reproducible demo, run:
npx create-remix@latest --template remix-run/indie-stack blog-tutorialThen, to run the app:
npm run devConfirm that the logs look good. Then stop the server, run
npm i devtools-detector, and then import it anywhere in the project. Bam, your logs will be full of 20,000 lines of JSON object from performance.checker.ts on every request.@AEPKILL commented on GitHub (Dec 2, 2022):
Maybe fixed, Please try install devtools-detector@2.0.14
@jdempcy commented on GitHub (Dec 14, 2022):
Looks like that fixed it! Thank you so much AEPKILL!