-
Notifications
You must be signed in to change notification settings - Fork 144
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
how to turn log/traceback color off? #180
Comments
Hi, |
For reference it's this line here with |
I don't think it's But It looks like even the package that caused the problem isn't documenting this feature Would it be kindly possible to document this somewhere in this project's docs? Thank you! |
Could you please check if passing |
I confirm that it works. May I suggest that this is a sub-optimal way to implement this - as now the user has to pass this flag multiple times and the main issue is that this flag has nothing to do with the Executor but the library itself. This is a global behavior - either the user's setup can support the rainbow colors or it doesn't. It's a one-time binary decision. Moreover this won't work well for different users using the same datatrove script since their setup will be different and hardcoding for one user's environment will not make other users' experience optimal. May I propose 2 different solutions:
Thank you. |
Very well, point taken.
Thank you for the taking the time to discuss this |
Unless I'm missing something your default to colorize to the dark theme will still render datatrove problematic for anybody with a non-dark theme - since you're not detecting if it's safe to colorize or not - I have no idea what "auto-detected" in
means. Could you please point me to where that code is? But this is your library, and if you don't care for a smooth out of the box experience for all users and force on them a UX feature that has nothing to do with what this library was designed for, that's your choice. Thank you for adding knobs to allow a user to have the library usable after they discovered those knobs. |
Trying datatrove for the first time and the program spews a bunch of logs and tracebacks in yellow and cyan which are completely unreadable on the b&w console.
Does the program make an assumption that the user is using w&b (dark) console?
I tried to grep for
color
to see how it controls the colors but found nothing relevant, so it's probably some 3rd party component that does that.If the coloring logic doesn't bother to check what the console colors are to keep the output readable, any idea how to turn it off completely? I RTFM'ed - didn't find any docs that address that aspect.
Thanks a lot!
The text was updated successfully, but these errors were encountered: