-
Notifications
You must be signed in to change notification settings - Fork 777
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
[util] Improve logging for configuration settings. #630
Conversation
Log when default settings are found. Log effective configuration settings.
Since we can spoof both ID's it is nice to see the real values.
It'd be nice if you could explain the reason why we need this. That said, I've seen less useful PRs. |
Yes, sure, sorry ;)
Furthermore I added logging for vendor and device id. E.g. if I don't want to use the built-in settings for vendor and device ID for Arkham Knight, I would know which ID's I would have to use in a dxvk config file. Edit: With the recently added configuration options I guess it would be useful to have all applied settings in the log files when people report issues here. From my experience this can greatly support the troubleshooting. Usually people will get very creative with config options or just blindly download random configs from somewhere and apply these ;). |
Logging with this PR would look like:
When a config file is used you would additionally see the already existing log line Note that I went for "=" as separator between key and value like it would be used in a config file. Let me know what you prefer. Using ":" would be more consistent with other log statements. Edit: Updated with hex values. |
Should be good now. |
Nitpicking alert: std::hex results in lower case hex value. I guess it would read slightly nicer in the logs if the values for the built-in settings for device ID and vendor ID were also lower case. Thus
Let me know if you want me to include casing adjusting for the built-in settings in this (or separate) PR. |
I added this functionality in d494726 based on your work. |
Thanks a lot, nice to see that this PR turned out somewhat useful.
I think you missed the logging statements for the actual vendor and device ID. May I ask you to include these too?
… On 14 sep. 2018, at 15:36, Philip Rebohle ***@***.***> wrote:
I added this functionality in d494726 based on your work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I left them out deliberately because they don't add valuable information in my opinion. Knowing the vendor and device name, it's easy enough to look up the PCIe IDs if you absolutely need them, but tbh I don't see why you would. |
I think (as a general note) if you can override a setting, it is useful to have the default value at hand. I fully agree that these ID's are way to much details for the HUD, though I think they wouldn't hurt in the logs. |
Log when default settings are found.
Log effective configuration settings.