Skip to content

Fix-up of PR #11582: filter an extra call to log.debug in nvwave channel#11614

Merged
feerrenrut merged 1 commit into
nvaccess:betafrom
CyrilleB79:fixup11582nvwaveLog
Sep 16, 2020
Merged

Fix-up of PR #11582: filter an extra call to log.debug in nvwave channel#11614
feerrenrut merged 1 commit into
nvaccess:betafrom
CyrilleB79:fixup11582nvwaveLog

Conversation

@CyrilleB79

Copy link
Copy Markdown
Contributor

Link to issue number:

None
Fix-up of #11582.

Summary of the issue:

When #11582 was implemented, I have forgotten to filter a call to log.debug under nvwave channel in nvwave.py. Thus the following message appears regularly in the log even if nvwave debug logging option is not enabled in Advanced settings panel.

DEBUG - nvwave.WavePlayer._close (14:33:34.617) - MainThread (3920):
Calling winmm.waveOutClose

Description of how this pull request fixes the issue:

Filter this call to log.debug as for other already filtered calls.

So now, in nwave.py, all calls to log.debug are filtered under the nvwave debug log category except the following one:

log.debug("Error closing the device, it may have been removed.", exc_info=True)

As written in #11582, I have left this one outside of nvwave debug filter since it was an error and thus seemed more important to me. Let me know however if my reasoning is not correct since I do not know when this error can occur.

Moreover, the calls to log.debugWarning and log.warning are not filtered since they are not at debug level.

Testing performed:

Changed synthesizer and checked that this message has disappeared.

Known issues with pull request:

None.

Change log entry:

N/A

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@feerrenrut, this is ready for review.

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CyrilleB79

@feerrenrut feerrenrut merged commit 39e828c into nvaccess:beta Sep 16, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Sep 16, 2020
@CyrilleB79 CyrilleB79 deleted the fixup11582nvwaveLog branch October 1, 2020 07:22
@Adriani90 Adriani90 mentioned this pull request Dec 14, 2024
5 tasks
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

Successfully merging this pull request may close these issues.

3 participants