Skip to content
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

In debug mode, this crate logs one line per BYTE of input #55

Open
lovasoa opened this issue Aug 3, 2023 · 0 comments
Open

In debug mode, this crate logs one line per BYTE of input #55

lovasoa opened this issue Aug 3, 2023 · 0 comments

Comments

@lovasoa
Copy link

lovasoa commented Aug 3, 2023

Here is what I get when I switch on debug mode in SQLPage:

[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `w` (U+0077) to TextBeforeData
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] retry:   `DataStart`
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] enter:   `Data`
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `e` (U+0065) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `b` (U+0062) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `s` (U+0073) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `i` (U+0069) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `t` (U+0074) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `e` (U+0065) to DataInside
[2023-08-03T14:24:48Z DEBUG markdown::tokenizer] feed:    byte `s` (U+0073) to DataInside

This makes debugging harder, not easier. Maybe these logs should be switched to the "trace" level, or the tokenizer could tokenize entire strings instead of one byte at a time ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant