Skip to content

Commit cde1de5

Browse files
committed
Fix wgpu warning spam in logs on Windows: "Unrecognized present mode 1000361000"
1 parent f901f33 commit cde1de5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

node-gui/backend/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,14 @@ pub async fn node_initialize(
110110
mode: WalletMode,
111111
) -> anyhow::Result<NodeInitializationOutcome> {
112112
if std::env::var("RUST_LOG").is_err() {
113+
// Note: wgpu_hal=error is included to prevent it from spamming warnings
114+
// "Unrecognized present mode 1000361000" on Windows. Note that this seems
115+
// to have been fixed in https://github.com/gfx-rs/wgpu/pull/7850 and
116+
// the fix has already been released, however our dependencies still use
117+
// a pretty old version of wgpu.
113118
std::env::set_var(
114119
"RUST_LOG",
115-
"info,wgpu_core=error,hyper=error,jsonrpsee-server=error",
120+
"info,wgpu_core=error,wgpu_hal=error,hyper=error,jsonrpsee-server=error",
116121
);
117122
}
118123

0 commit comments

Comments
 (0)