Revert "Add log rotation (#6564)" (#6627)

This reverts commit 6eb2eb81c5.
This commit is contained in:
Bastian Köcher
2020-07-10 12:43:41 +02:00
committed by GitHub
parent 150ef0a40a
commit 64114267b2
7 changed files with 84 additions and 50 deletions
@@ -19,10 +19,8 @@
use sc_service::config::BasePath;
use std::path::PathBuf;
use structopt::StructOpt;
use crate::logger::LogRotationOpt;
/// Shared parameters used by all `CoreParams`.
#[allow(missing_docs)]
#[derive(Debug, StructOpt)]
pub struct SharedParams {
/// Specify the chain specification (one of dev, local, or staging).
@@ -43,9 +41,6 @@ pub struct SharedParams {
/// By default, all targets log `info`. The global log level can be set with -l<level>.
#[structopt(short = "l", long, value_name = "LOG_PATTERN")]
pub log: Vec<String>,
#[structopt(flatten)]
pub log_rotation_opt: LogRotationOpt,
}
impl SharedParams {
@@ -77,9 +72,4 @@ impl SharedParams {
pub fn log_filters(&self) -> &[String] {
&self.log
}
/// Get the file rotation options for the logging
pub fn log_rotation_opt(&self) -> &LogRotationOpt {
&self.log_rotation_opt
}
}