[core] Remove log::error! that are also reported as validation Err (#6817)

This commit is contained in:
Samson authored and GitHub committed 2024-12-23 18:07:19 -05:00
1 parent 7b5a348c7c
commit 48b2f1d4f7
2 files changed
+1 -16

No files matched your search

-12
View File
@@ -331,8 +331,6 @@ impl Global {
return (id, None);
};
log::error!("Device::create_texture error: {error}");
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
(id, Some(error))
}
@@ -376,8 +374,6 @@ impl Global {
return (id, None);
};
log::error!("Device::create_texture error: {error}");
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
(id, Some(error))
}
@@ -487,7 +483,6 @@ impl Global {
return (id, None);
};
log::error!("Texture::create_view({texture_id:?}) error: {error}");
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
(id, Some(error))
}
@@ -942,8 +937,6 @@ impl Global {
return (id, None);
};
log::error!("Device::create_shader_module error: {error}");
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
(id, Some(error))
}
@@ -993,8 +986,6 @@ impl Global {
return (id, None);
};
log::error!("Device::create_shader_module_spirv error: {error}");
let id = fid.assign(Fallible::Invalid(Arc::new(desc.label.to_string())));
(id, Some(error))
}
@@ -1375,8 +1366,6 @@ impl Global {
}
}
log::error!("Device::create_render_pipeline error: {error}");
(id, Some(error))
}
@@ -2174,7 +2163,6 @@ impl Global {
if let Some(callback) = operation.callback.take() {
callback(Err(err.clone()));
}
log::error!("Buffer::map_async error: {err}");
Err(err)
}
}
+1 -4
View File
@@ -570,10 +570,7 @@ impl Buffer {
};
Ok(())
}
Err(e) => {
log::error!("Mapping failed: {e}");
Err(e)
}
Err(e) => Err(e),
}
} else {
*self.map_state.lock() = BufferMapState::Active {