Add clean-logs-older-than option
This commit is contained in:
parent
4c7d108e09
commit
880c98ecfb
17 changed files with 360 additions and 10 deletions
|
|
@ -60,7 +60,7 @@ use {
|
|||
atomic::{AtomicBool, Ordering::Relaxed},
|
||||
},
|
||||
task::{Context, Poll, Waker},
|
||||
time::Duration,
|
||||
time::{Duration, SystemTime},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -776,6 +776,10 @@ impl ConfigClient {
|
|||
self.send(&ClientMessage::SetLogLevel { level })
|
||||
}
|
||||
|
||||
pub fn clean_logs_older_than(&self, time: SystemTime) {
|
||||
self.send(&ClientMessage::CleanLogsOlderThan { time })
|
||||
}
|
||||
|
||||
pub fn unset_env(&self, key: &str) {
|
||||
self.send(&ClientMessage::UnsetEnv { key });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue