This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 0e887f76 chore: improve LoggingLayer docs and pub use log::Level 
(#2089)
0e887f76 is described below

commit 0e887f76bd20c104270fac017548185de9f5abdb
Author: dennis zhuang <[email protected]>
AuthorDate: Sun Apr 23 22:02:07 2023 +0800

    chore: improve LoggingLayer docs and pub use log::Level (#2089)
    
    chore: describe default logging level in LoggingLayer docs
---
 core/src/layers/logging.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/layers/logging.rs b/core/src/layers/logging.rs
index d65797f5..a684ac5d 100644
--- a/core/src/layers/logging.rs
+++ b/core/src/layers/logging.rs
@@ -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
 ///

Reply via email to