frontend: Log sceneitem and filter enabled#11135
Conversation
|
This is just my opinion of course but I think if this PR is introducing state logging on load it should also include logging of state changes. |
|
Would it perhaps be better to identify enabled or disabled filters just by adding That way no special knowledge is needed to read that information in the log, the filter lines are just self-explanatory. |
I considered it but it is IMO, too verbose, and not that useful, in the same vein that, for example sceneitem order changes aren't logged, only sceneitem order on load.
Quite in the same vein, my goal was to preserve simplicity and keep verbosity at a minimum. I feel that the way it is is decently self explanatory, but am deffo open to other alternatives. |
I disagree with the comparison and don't think it would be very verbose unless someone is constantly enabling/disabling sources and filters. If the motivation for this change is to assist with support then having a way to determine the current state is more valuable then just knowing the initial state at load. |
859b258 to
31b450d
Compare
After sleep and reconsideration, yeah, fair. Added. |
52dca3c to
e67bbde
Compare
|
I will also add that I agree with @alinsavix on using (disabled) for the disabled items only and logging nothing for something that is enabled. |
e67bbde to
4f954df
Compare
|
Done. |
4f954df to
44ec4db
Compare
|
@Penwy Can you fix up the conflict on this? |
5ec38a2 to
412f64e
Compare
RytoEX
left a comment
There was a problem hiding this comment.
Commit prefixes and PR prefix will need to be updated to "frontend: ".
Requested relevant reviews.
|
Upon revisiting it I realised this leaves one logging without that info : |
Description
This logs whether sceneitems and filters are enabled on scene collection load.
Inactive ones are prefaced with a
oand active ones by a*.An example log can be found here
Motivation and Context
Whether or not sceneitems/filters are enabled is often an important matter in support, having it logged would greatly simplify some support workflows.
How Has This Been Tested?
Running obs, checking it logs correctly.
Types of changes
Checklist: