-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Controller logging categories (with --controllerDebug support) #4523
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for spending the time to make this mergeable.
Thank you very much for picking this up. Unfortunately my log file is now spammed with:
when starting Mixxx with just ./mixxx |
When starting with --controller-debug it becomes:
In the terminal only. While the midi messages are also passed into the mixxx.log
but without the logging category prefix. I am not sure if it is desired that the timer messages are in the terminal only. I just want to point it out. The [Controller] messages have now two time the controller name in the terminal. |
I am just stumbling over my comment here:
Can we remove that hack probably the best in a second PR? Or has it an effect here? Do you have a fresh opinion on that? |
5f961dc
to
0ee0b28
Compare
0ee0b28
to
9830a86
Compare
thank you for picking up this work <3 |
9830a86
to
80dc874
Compare
I'm not sure what you mean exactly, but feel free to open a PR. The lines have not been touched by this PR, so it's out of scope here. |
I'm not sure what you mean, please elaborate. I don't know what you want me to change.
Yes, someone may implement this in a follow-up PR. |
I don't know how to fix it either. I have only this observation:
So this patch enables the timer log spam, but it is not considered when disabling controller debug for mixxx.log. I don't mind if we have the timer messages or not, but It is an issue to flood the mixxx.log by default. |
80dc874
to
8bb2157
Compare
Ah, so you want to filter the timer messages from the log file by default, like the MIDI I/O messages are filtered? I did not get that from your previous messages. Please check the latest commit. |
It is just the removal of a comment: |
This will be required to use it in a QLoggingCategory which has a deleted copy constructor.
Logging is separated into several subcategores: controller.CONTROLLERNAME: general messages controller.CONTROLLERNAME.input: incoming data controller.CONTROLLERNAME.output: outgoing data CONTROLLERNAME is the lowercase device name with non-alphanumeric characters removed. This allows more fine tuned control of what messages are shown in the console. This is required for the logging output to be useful with controllers that continually send input such as the Native Instruments Traktor Kontrol S4 Mk3 and Gemini GMX.
8bb2157
to
03ebbf9
Compare
can confirm, timers no longer printed by default. I would also be ok with a deprecation notice when users use --controllerDebug, but that's not required. |
I can also confirm that my test are now working as desired. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you very much :-)
Thank you all for picking up and finishing this task! |
This is the abandoned PR #4522 with support for the
--controllerDebug
flag added.