mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
simulator: Persist beacon logs (#7394)
Beacon logs in the simulator are printed only to stdout. The logs are usually large, so persisting them would be helpful for debugging. Added `--log-dir` parameter to the simulators and a step to upload the logs to Artifacts. (Update) Added `--disable-stdout-logging` to disable stdout logging, making the CI page cleaner.
This commit is contained in:
@@ -61,6 +61,18 @@ pub fn cli_app() -> Command {
|
||||
.long("continue_after_checks")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help("Continue after checks (default false)"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("log-dir")
|
||||
.long("log-dir")
|
||||
.action(ArgAction::Set)
|
||||
.help("Set a path for logs of beacon nodes that run in this simulation."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-stdout-logging")
|
||||
.long("disable-stdout-logging")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help("Disables stdout logging."),
|
||||
),
|
||||
)
|
||||
.subcommand(
|
||||
@@ -120,6 +132,18 @@ pub fn cli_app() -> Command {
|
||||
.long("continue_after_checks")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help("Continue after checks (default false)"),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("log-dir")
|
||||
.long("log-dir")
|
||||
.action(ArgAction::Set)
|
||||
.help("Set a path for logs of beacon nodes that run in this simulation."),
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-stdout-logging")
|
||||
.long("disable-stdout-logging")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help("Disables stdout logging."),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user