Skip to content
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

Option to Disable Dawn Logging #437

Open
jcalabro opened this issue Nov 1, 2023 · 2 comments
Open

Option to Disable Dawn Logging #437

jcalabro opened this issue Nov 1, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jcalabro
Copy link

jcalabro commented Nov 1, 2023

Hey there! Is there any way to disable logging from Dawn, perhaps by passing this ifdef? I did a bit of digging and I see that there is a LoggingType enum defined, but it doesn't appear to be used anywhere.

I'd like to be able to have stdout/stderr have no information for this particular project as we have our own logging system.

$ zig build run
Warning: DiscoverDefaultPhysicalDevices is deprecated. Call EnumerateAdapters or RequestAdapter instead.

Thanks!

@hazeycode
Copy link
Member

hazeycode commented Jan 7, 2024

Hi! Using DAWN_DISABLE_LOGGING is the way to do it I think. This isn't to exposed to the build system right now because we use prebuilt Dawn lib. I will have a think about how to resolve this issue.

@hazeycode hazeycode added the enhancement New feature or request label Jan 10, 2024
@hazeycode hazeycode self-assigned this Jan 27, 2024
@Pyrolistical
Copy link
Contributor

We should also fix cause of the warning #468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants