Skip to content

Commit d8eeacf

Browse files
committed
Remove debug logs
1 parent 618d721 commit d8eeacf

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

core/services/opfs/src/backend.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ impl Access for OpfsBackend {
129129
async fn write(&self, path: &str, _args: OpWrite) -> Result<(RpWrite, Self::Writer)> {
130130
let p = build_abs_path(&self.core.root, path);
131131
let handle = get_file_handle(&p, true).await?;
132-
console_debug!("write: handle = {:?}", handle);
133-
console_debug!("write: path = {:?}", p);
134132
let stream: FileSystemWritableFileStream = JsFuture::from(handle.create_writable())
135133
.await
136134
.and_then(JsCast::dyn_into)

core/services/opfs/src/deleter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ impl OpfsDeleter {
3838

3939
impl oio::OneShotDelete for OpfsDeleter {
4040
async fn delete_once(&self, path: String, args: OpDelete) -> Result<()> {
41-
console_debug!("delete!");
4241
let p = build_abs_path(&self.core.root, &path);
4342
let (dir, name) = get_parent_dir_and_name(&p, false).await?;
4443

@@ -47,7 +46,6 @@ impl oio::OneShotDelete for OpfsDeleter {
4746

4847
match JsFuture::from(dir.remove_entry_with_options(name, &opt)).await {
4948
Ok(_) => {
50-
console_debug!("delete ok!");
5149
Ok(())
5250
}
5351
Err(e) => {

core/services/opfs/src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use opendal_core::Error;
2323
use opendal_core::ErrorKind;
2424

2525
pub(crate) fn parse_js_error(value: JsValue) -> Error {
26-
console_debug!("parse_js_error: {:?}", value);
2726
if let Some(exc) = value.dyn_ref::<DomException>() {
2827
let kind = match exc.name().as_str() {
2928
"NotFoundError" => ErrorKind::NotFound,

core/services/opfs/src/utils.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use super::error::*;
2828

2929
/// Get the OPFS root directory handle.
3030
pub(crate) async fn get_root_directory_handle() -> Result<FileSystemDirectoryHandle> {
31-
console_debug!("get_root_directory_handle");
3231
let navigator = window().unwrap().navigator();
3332
let storage_manager = navigator.storage();
3433
// This may fail if not secure (not: HTTPS or localhost)
@@ -45,7 +44,6 @@ pub(crate) async fn get_directory_handle(
4544
path: &str,
4645
create: bool,
4746
) -> Result<FileSystemDirectoryHandle> {
48-
console_debug!("get_directory_handle path={path:?} create={create:?}");
4947
let opt = FileSystemGetDirectoryOptions::new();
5048
opt.set_create(create);
5149

core/services/opfs/src/writer.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl OpfsWriter {
4343

4444
impl oio::Write for OpfsWriter {
4545
async fn write(&mut self, bs: Buffer) -> Result<()> {
46-
console_debug!("write!!!!!!!!!!!!!!!!!!!!!");
4746
let bytes = bs.to_bytes();
4847
let params = WriteParams::new(WriteCommandType::Write);
4948
params.set_size(Some(bytes.len() as f64));
@@ -62,7 +61,6 @@ impl oio::Write for OpfsWriter {
6261
}
6362

6463
async fn close(&mut self) -> Result<Metadata> {
65-
console_debug!("close!!!!!!!!!!!!!!!!!!!!!");
6664
JsFuture::from(self.stream.close())
6765
.await
6866
.map_err(parse_js_error)?;
@@ -74,7 +72,6 @@ impl oio::Write for OpfsWriter {
7472
}
7573

7674
async fn abort(&mut self) -> Result<()> {
77-
console_debug!("abort!!!!!!!!!!!!!!!!!!!!!");
7875
JsFuture::from(self.stream.abort())
7976
.await
8077
.map_err(parse_js_error)?;

0 commit comments

Comments
 (0)