fix: make debug logging work and not cause infinite updates #380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the Contributor
This pull request is posted on behalf of TV 2 Norge
Type of Contribution
This is a:
Bug fix
Current Behavior
The
Activate debug logging for device
option seemingly does nothing. No debug logs are printed when toggled on. However, when toggled while a device is already enabled, it causes an infinite sequence of update operations.New Behavior
Debug logging works, and the operation updates properties needed for later comparison with potentially changed options. Null/undefined values are treated correctly.
Testing Instructions
Activate debug logging for device
option to on and off. Check if there's a difference in logs depending on the value.Activate debug logging for device
option on and off. Check if there's a difference in logs depending on the value.In both cases, a device capable of outputting debug logs should be used, and playout actions should be performed in order to provoke the logs.
Other Information
Draft. Might add unit tests
Status