summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/Cargo.toml1
-rw-r--r--ext/io/winpipe.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/io/Cargo.toml b/ext/io/Cargo.toml
index 17a967834..70b5c63f8 100644
--- a/ext/io/Cargo.toml
+++ b/ext/io/Cargo.toml
@@ -18,6 +18,7 @@ async-trait.workspace = true
deno_core.workspace = true
filetime.workspace = true
fs3.workspace = true
+log.workspace = true
once_cell.workspace = true
tokio.workspace = true
diff --git a/ext/io/winpipe.rs b/ext/io/winpipe.rs
index f66dec6b6..01d018008 100644
--- a/ext/io/winpipe.rs
+++ b/ext/io/winpipe.rs
@@ -74,7 +74,7 @@ fn create_named_pipe_inner() -> io::Result<(RawHandle, RawHandle)> {
// This should not happen, so we would like to get some better diagnostics here.
// SAFETY: Printing last error for diagnostics
unsafe {
- eprintln!(
+ log::error!(
"*** Unexpected server pipe failure '{pipe_name:?}': {:x}",
GetLastError()
);
@@ -99,7 +99,7 @@ fn create_named_pipe_inner() -> io::Result<(RawHandle, RawHandle)> {
// SAFETY: Getting last error for diagnostics
let error = unsafe { GetLastError() };
// This should not happen, so we would like to get some better diagnostics here.
- eprintln!(
+ log::error!(
"*** Unexpected client pipe failure '{pipe_name:?}': {:x}",
error
);