Client: Added Fetcher debug logger #1544
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another debug thing, I was finally fed up that we do not get the Fetcher under control and control flow is so hard to debug and trace there.
I first tried to take Andrews @acolytec3 concerns on having two different loggers in the client into account and added new debug messages as classic
this.config.logger.debug()
messages, but this turned out to be impractical because things become too verbose especially when debugging on something so process-heavy as the Fetcher, and at the same time the other debug output is highly distracting and this would only get worse over time if we add on classic debug logging. So at some point I switched over and used thedebug
package.Good thing is: this is really making things hyper-clear 😀, I guess once you see the output you will "feel" this yourself. I guess this will dramatically help us to get the control flow under control from this angle, I actually directly was drawn to fix things on 2-3 ends because things become so obvious.
Here is some sample output on running
DEBUG=client:fetcher npm run client:start
:Have opened this up for review, but eventually I will also do some additional work here.