-
Notifications
You must be signed in to change notification settings - Fork 247
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
[BUG] Log flood in the debug console by default. #714
Comments
Hi, Grepping for The current logger implementation is also very basic, and doesn't offer much filtering. Something like flexi-logger should allow you to specify per-module levels, so you could only allow warnings and errors from cursive (and other dependencies), but see info logs from your own module. |
Running the above example, I'm seeing logs from
I'm using tracing with tracing-subscriber and it has a feature 'env-filter' which allows you to set per-module logging levels. Without it I get spammed with debug messages from LinearLayout. It seems like even when at the bottom of a ScrollView scrolling causes a redraw and triggers more debug messages. I think this is because the debug console is added as a layer on the current screen so scrolling the debug console causes the rest of the screen to be redrawn. I guess this didn't get caught cause only some views have debug messages in Also, the reason that setting I think this can be addressed by:
|
i experienced this today also, in the debug console, logs are flooded with cursive logs. Nice to see that this is being addressed. When might we see a new release with the fixed? |
I am experiencing problems with this as well, whenever I use cursive with a logger that has the log level set to debug, cursive spews my log with tens-of-thousands of logs of updates to positions, sizes, and other such things, and without buffering they choke the application due to the sheer amount of IO. In my opinion, some of these debug statements might serve better as trace statements, as they are in excess and drown out other debug logs, but I would like to hear a second opinion. |
True, we could reduce the level of these. |
Describe the bug
Debug console with logs show too many
DEBUG
-level messages by default.To Reproduce
Implement simple app based on README and some functions' documentation. In particular, use
toggle_debug_console
andlogger::init
.Expected behavior
Resulting console activated by
~
contains few logs (unless errors happen) from Cursive itself (e.g. just something like "Hello from Cursive version ... running on backend ... on terminal ... on locale ...", "Main window initialized", etc.). New logs from user app are easily visible in it. Interaction with the debug console itself (e.g. scrolling it) does not typically produce new logs. Debug-level logs (especially from Cursive itself) appear only if user explictily configures it from within the code or environment.Actual behavior
The console is flooded by
DEBUG
-level logs originating from Cursive itself, which pile up more and more as I attempt to scroll the console to the bottom. Even starting withRUST_LOG=info
does not seems to stop this.Environment
The text was updated successfully, but these errors were encountered: