switch from log::debug to tracing::debug

this duplicates work done in #2139 on code that moves from
where the switch took place in that PR.
This commit is contained in:
Pat Hickey
2020-08-18 10:55:42 -07:00
parent e8160c9a6b
commit 4be3b06b61

View File

@@ -271,12 +271,12 @@ impl From<io::Error> for Errno {
winerror::ERROR_DIRECTORY => Self::Notdir, winerror::ERROR_DIRECTORY => Self::Notdir,
winerror::ERROR_ALREADY_EXISTS => Self::Exist, winerror::ERROR_ALREADY_EXISTS => Self::Exist,
x => { x => {
log::debug!("winerror: unknown error value: {}", x); tracing::debug!("winerror: unknown error value: {}", x);
Self::Io Self::Io
} }
}, },
None => { None => {
log::debug!("Other I/O error: {}", err); tracing::debug!("Other I/O error: {}", err);
Self::Io Self::Io
} }
} }
@@ -365,12 +365,12 @@ impl From<io::Error> for Errno {
libc::ENOTRECOVERABLE => Self::Notrecoverable, libc::ENOTRECOVERABLE => Self::Notrecoverable,
libc::ENOTSUP => Self::Notsup, libc::ENOTSUP => Self::Notsup,
x => { x => {
log::debug!("Unknown errno value: {}", x); tracing::debug!("Unknown errno value: {}", x);
Self::Io Self::Io
} }
}, },
None => { None => {
log::debug!("Other I/O error: {}", err); tracing::debug!("Other I/O error: {}", err);
Self::Io Self::Io
} }
} }