mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
## Issues Addressed Closes https://github.com/sigp/lighthouse/issues/3101 ## Proposed Changes Add global flag to suppress timestamps in the terminal logger.
This commit is contained in:
@@ -145,6 +145,12 @@ fn main() {
|
||||
.help("Force outputting colors when emitting logs to the terminal.")
|
||||
.global(true),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("disable-log-timestamp")
|
||||
.long("disable-log-timestamp")
|
||||
.help("If present, do not include timestamps in logging output.")
|
||||
.global(true),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("debug-level")
|
||||
.long("debug-level")
|
||||
@@ -381,6 +387,8 @@ fn run<E: EthSpec>(
|
||||
|
||||
let log_color = matches.is_present("log-color");
|
||||
|
||||
let disable_log_timestamp = matches.is_present("disable-log-timestamp");
|
||||
|
||||
let logfile_debug_level = matches
|
||||
.value_of("logfile-debug-level")
|
||||
.ok_or("Expected --logfile-debug-level flag")?;
|
||||
@@ -434,6 +442,7 @@ fn run<E: EthSpec>(
|
||||
logfile_debug_level,
|
||||
log_format,
|
||||
log_color,
|
||||
disable_log_timestamp,
|
||||
max_log_size: logfile_max_size * 1_024 * 1_024,
|
||||
max_log_number: logfile_max_number,
|
||||
compression: logfile_compress,
|
||||
|
||||
Reference in New Issue
Block a user