mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
Allow passing multiple --log CLI options (#5982)
* Allow passing multiple --log CLI options * Comment typo
This commit is contained in:
@@ -42,7 +42,7 @@ pub struct SharedParams {
|
||||
/// Log levels (least to most verbose) are error, warn, info, debug, and trace.
|
||||
/// By default, all targets log `info`. The global log level can be set with -l<level>.
|
||||
#[structopt(short = "l", long = "log", value_name = "LOG_PATTERN")]
|
||||
pub log: Option<String>,
|
||||
pub log: Vec<String>,
|
||||
}
|
||||
|
||||
impl SharedParams {
|
||||
@@ -71,7 +71,7 @@ impl SharedParams {
|
||||
}
|
||||
|
||||
/// Get the filters for the logging
|
||||
pub fn log_filters(&self) -> Option<String> {
|
||||
self.log.clone()
|
||||
pub fn log_filters(&self) -> &[String] {
|
||||
&self.log
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user