Skip to content

Commit df57b3f

Browse files
authored
feat(l2): always use monitor (#3759)
**Motivation** Once all monitor issues are resolved, it should be used by default <!-- Why does this pull request exist? What are its goals? --> **Description** Change the `--monitor` flag for the `--no-monitor` one, which turns off the monitor <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> It should only be merged after all other issues are resolved #3513, #3526, #3534, #3516, #3520, #3521, #3522, #3523, #3524, #3525, #3527, #3528, #3529, #3530, #3531, #3532, #3695, #3757, #3736
1 parent 8c89f52 commit df57b3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/ethrex/l2/initializers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub fn init_metrics(opts: &L1Options, tracker: TaskTracker) {
119119
}
120120

121121
pub fn init_tracing(opts: &L2Options) {
122-
if opts.sequencer_opts.monitor {
122+
if !opts.sequencer_opts.no_monitor {
123123
let level_filter = EnvFilter::builder()
124124
.parse_lossy("debug,tower_http::trace=debug,reqwest_tracing=off,hyper=off,libsql=off,ethrex::initializers=off,ethrex::l2::initializers=off,ethrex::l2::command=off");
125125
let subscriber = tracing_subscriber::registry()

cmd/ethrex/l2/options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct SequencerOptions {
9595
env = "ETHREX_MONITOR",
9696
help_heading = "Sequencer options"
9797
)]
98-
pub monitor: bool,
98+
pub no_monitor: bool,
9999
}
100100

101101
pub fn parse_signer(
@@ -207,7 +207,7 @@ impl TryFrom<SequencerOptions> for SequencerConfig {
207207
aligned_sp1_elf_path: opts.aligned_opts.aligned_sp1_elf_path.unwrap_or_default(),
208208
},
209209
monitor: MonitorConfig {
210-
enabled: opts.monitor,
210+
enabled: !opts.no_monitor,
211211
tick_rate: opts.monitor_opts.tick_rate,
212212
batch_widget_height: opts.monitor_opts.batch_widget_height,
213213
},

0 commit comments

Comments
 (0)