52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
From 7dc67f1bac0dcdd84a5a7eeb2b220ea70f17b3cf Mon Sep 17 00:00:00 2001
|
|
From: licunlong <licunlong1@huawei.com>
|
|
Date: Sun, 25 Jun 2023 15:34:33 +0800
|
|
Subject: [PATCH] typo: fix some debugging messages and typoes
|
|
|
|
---
|
|
core/bin/plugin/mod.rs | 7 ++-----
|
|
libs/basic/src/logger.rs | 2 +-
|
|
3 files changed, 4 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/core/bin/plugin/mod.rs b/core/bin/plugin/mod.rs
|
|
index 69bf8b8..869f360 100644
|
|
--- a/core/bin/plugin/mod.rs
|
|
+++ b/core/bin/plugin/mod.rs
|
|
@@ -309,7 +309,7 @@ impl Plugin {
|
|
};
|
|
|
|
/* We need the lib*.so pass SubUnit and UnitManagerObj to sysmaster-core, and we check if
|
|
- * subunit_create_with_params and um_obj_create exists in lib*.so, because these two funs
|
|
+ * subunit_create_with_params and um_obj_create exist in lib*.so, because these two functions
|
|
* will be used to generate SubUnit and UnitManagerObj. */
|
|
|
|
type FnTypeSubUnit = fn(um: Rc<dyn UmIf>) -> *mut dyn SubUnit;
|
|
@@ -469,10 +469,7 @@ impl Plugin {
|
|
Ok(v) => v,
|
|
};
|
|
|
|
- log::debug!(
|
|
- "create unit obj with param level filter: {:?}",
|
|
- log::max_level()
|
|
- );
|
|
+ log::debug!("create unit obj with params");
|
|
let boxed_raw = fun(um.clone());
|
|
Ok(unsafe { Box::from_raw(boxed_raw) })
|
|
}
|
|
diff --git a/libs/basic/src/logger.rs b/libs/basic/src/logger.rs
|
|
index 0bc15bb..56def43 100644
|
|
--- a/libs/basic/src/logger.rs
|
|
+++ b/libs/basic/src/logger.rs
|
|
@@ -207,7 +207,7 @@ fn build_log_config(
|
|
.build(),
|
|
),
|
|
"file" => {
|
|
- let pattern = file_path.to_string() + &".{}";
|
|
+ let pattern = file_path.to_string() + ".{}";
|
|
let policy = Box::new(CompoundPolicy::new(
|
|
Box::new(SizeTrigger::new(file_size as u64 * 1024)),
|
|
Box::new(
|
|
--
|
|
2.33.0
|
|
|