mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-07 06:44:11 +00:00
Fix logsize to 5mb max
This commit is contained in:
parent
d43856aa76
commit
e36516db70
@ -42,8 +42,8 @@ const ANCHOR_OFFSET: u32 = 4;
|
|||||||
fn get_log_config(config: &LightClientConfig) -> Result<Config> {
|
fn get_log_config(config: &LightClientConfig) -> Result<Config> {
|
||||||
let window_size = 3; // log0, log1, log2
|
let window_size = 3; // log0, log1, log2
|
||||||
let fixed_window_roller =
|
let fixed_window_roller =
|
||||||
FixedWindowRoller::builder().build("log{}",window_size).unwrap();
|
FixedWindowRoller::builder().build("zecwallet-light-wallet-log{}",window_size).unwrap();
|
||||||
let size_limit = 5 * 1024; // 5KB as max log file size to roll
|
let size_limit = 5 * 1024 * 1024; // 5MB as max log file size to roll
|
||||||
let size_trigger = SizeTrigger::new(size_limit);
|
let size_trigger = SizeTrigger::new(size_limit);
|
||||||
let compound_policy = CompoundPolicy::new(Box::new(size_trigger),Box::new(fixed_window_roller));
|
let compound_policy = CompoundPolicy::new(Box::new(size_trigger),Box::new(fixed_window_roller));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user