-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: Reduce the amount of logging #269
Comments
Do you have some suggestions how and what to do? The debug logs are currently mostly helpful for me when fixing a new upcoming bug or implementing a new feature. |
With the logging disabled the testing output is 150 lines long, with logging left in it is over 100k more lines. Which is incredibly noisy. Solution wise, first is to strip out all but the most necessary logging calls in the repository. Then it's either not to commit more logging calls in the future or to use VSCode debugging that I've added in #271. This is a request to you as a maintainer, not really a request for the repository itself. As you're a good 730 commits ahead of the next person you're the most important person to please. I won't be unhappy if you say no, but it is a pain point for new contributors who will get overloaded by the firehose output in tests. Though there are some glaring logger calls that could be removed like: logger.debug(this.currentLineLength); |
If you are talking about tests, you should try Otherwise if you have a special test you want to perform, you can use either a path or a patter like so: yarn test tests/options [--silent]
yarn test -t detect [--silent] You can even combine path and pattern. Please let me know if this was your case (testing). If so, you should benefit from my suggestions. |
No this is not a solution when I'm trying to also output with |
@OiYouYeahYou Okay another try 🙂 Line 24 in 998a192
Line 101 in 998a192
Then try again and tell me if it is still to noisy 😄 |
I have been doing something to that effect yes. But it's a short term solution to a long term problem. Which is why I've brought it up as an issue. |
So yeah, I understand my points and your points. On the other side 🤔 Until now I had no big issues ignoring the logs like with e.g. Please feel free to create a PR and clean up or improve some of the logs. |
Monkey-patch for disabling debug logging can be found here: #172 (comment) |
Having worked on this project a bit one thing I have to do when testing is to disable the custom logger. The logger works fine, but, it's just a fire hose of noise when I'm trying to debug. I get the feeling that the all the logging from past debugging sessions but have been inadvertently committed.
@Shinigami92 Would it be ok to remove some logging messages?
The text was updated successfully, but these errors were encountered: