Skip to content

Commit

Permalink
chore: improve LoggingLayer docs and pub use log::Level
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Apr 23, 2023
1 parent fa9e5d1 commit aeb4503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/layers/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use futures::TryFutureExt;
use log::debug;
use log::log;
use log::trace;
use log::Level;
pub use log::Level;

use crate::ops::*;
use crate::raw::oio::ReadOperation;
Expand All @@ -45,6 +45,8 @@ use crate::*;
/// - `finished`: the operation is successful.
/// - `errored`: the operation returns an expected error like `NotFound`.
/// - `failed`: the operation returns an unexpected error.
/// - The default log level while expected error happened is `Warn`.
/// - The default log level while unexpected failure happened is `Error`.
///
/// # Todo
///
Expand Down

0 comments on commit aeb4503

Please sign in to comment.