Added a specific log channel for nvwave debug message#11582
Conversation
The majority of the message logged in nvwave.py is disabled by default. To enable it, check the nvwave item in the "Enabled logging categories" list of the "Advanced" setting panel.
|
@feerrenrut, may you review this one? Could you specifically look at the following points (among other):
I have no experience of this part of code so let me know your feedback on these two points as well as on this PR more generally. I have targeted beta branch as you told me. |
This comment has been minimized.
This comment has been minimized.
feerrenrut
left a comment
There was a problem hiding this comment.
Generally looks good, thanks @CyrilleB79
Co-authored-by: Reef Turner <feerrenrut@users.noreply.github.com>
…ebugForNvWave in the whole file.
|
@CyrilleB79 wrote:
GitHub closes issues automatically only when the corresponding PR is opened against main branch of the repository - in this case against master. Since this one targets beta #11574 will be closed after beta containing commit from this PR would be merged to master. |
|
@lukaszgo1 thanks for the answer. However in #11574, I can read:
I would have expected the PR to be linked to the issue, even if the issue is not yet closed (since not yet merged into master branch). |
|
@CyrilleB79 wrote:
That is quite strange indeed. I have no idea why this is happening. It would be interesting what happens after beta is merged to master. |
|
Oops, it seems that I have forgotten one instance of log.debug.
Should I make a PR against beta or master? On the contrary, as stated in the description of this PR, the following log was left intentionally since it corresponds to an error:
|
|
This can be made against beta. Thanks @CyrilleB79 |
Link to issue number:
Fixes #11574
Summary of the issue:
After the merge of #11531, some extra debug messages have been added in the log. They are quite specific and make the log quite noisy while debugging something else.
Since they are used for a well specific purpose and to ease the debug tasks, it was suggested and approved in #11574 (comment) that they appear under a dedicated log flag.
Description of how this pull request fixes the issue:
nwave.pyhave been put under "nvwave" log flag, unless the following ones:log.warning(f"Unable to open WAVE_MAPPER device, there may be no audio devices.")log.warning("Error during feed. Resetting the device.")log.debugWarning("Unable to send data to audio device on second attempt.", exc_info=True)log.exception("Error calling onDone")Testing performed:
Known issues with pull request:
None.
Change log entry:
No need to specify the corresponding issue (#11574) since this issue was only seen on alpha.
Is there a need to indicate this log channel in the
Changes for developerssection? Such other log channels are not specified in the change log.