]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/log: print out logger.debug() when log level >=6 42334/head
authorKefu Chai <kchai@redhat.com>
Wed, 14 Jul 2021 13:24:46 +0000 (21:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 14 Jul 2021 13:25:54 +0000 (21:25 +0800)
less chatty when debug level is 5. this matches the behavior of classic
osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/dev/crimson/crimson.rst
src/crimson/common/log.h

index 8e95e0c9b1a9b7673ced5f3234a1f3fbfb93a959..3508b5990b44ca2c75795dd4ed762ad1d986b40d 100644 (file)
@@ -82,9 +82,9 @@ over ``20`` will be printed using ``logger::trace()``.
 +---------+---------+
 |   0     | warn    |
 +---------+---------+
-| [1, 5)  | info    |
+| [1, 6)  | info    |
 +---------+---------+
-| [5, 20] | debug   |
+| [6, 20] | debug   |
 +---------+---------+
 | >  20   | trace   |
 +---------+---------+
index 63534909822c43550fc6c34f2b93a5c4d5c72558..1362869bb589bbcc7809b8284efb3c7e49e2a945 100644 (file)
@@ -13,7 +13,7 @@ static inline seastar::log_level to_log_level(int level) {
     return seastar::log_level::error;
   } else if (level < 1) {
     return seastar::log_level::warn;
-  } else if (level < 5) {
+  } else if (level <= 5) {
     return seastar::log_level::info;
   } else if (level <= 20) {
     return seastar::log_level::debug;