From 3f8f24bf6af20ea4a508e46dfcbbe5626f572624 Mon Sep 17 00:00:00 2001 From: refcell Date: Thu, 11 Jul 2024 10:02:09 -0400 Subject: [PATCH 1/2] fix(examples): reduce origin advance error to warn --- examples/trusted-sync/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/trusted-sync/src/main.rs b/examples/trusted-sync/src/main.rs index 79180ba32..6410d7e74 100644 --- a/examples/trusted-sync/src/main.rs +++ b/examples/trusted-sync/src/main.rs @@ -2,7 +2,7 @@ use anyhow::Result; use clap::Parser; use kona_derive::online::*; use std::sync::Arc; -use tracing::{debug, error, info}; +use tracing::{debug, error, info, warn}; mod cli; mod metrics; @@ -122,7 +122,7 @@ async fn sync(cli: cli::Cli) -> Result<()> { } StepResult::OriginAdvanceErr(e) => { metrics::PIPELINE_STEPS.with_label_values(&["origin_advance_failure"]).inc(); - error!(target: "loop", "Error advancing origin: {:?}", e); + warn!(target: "loop", "Error advancing origin: {:?}", e); } StepResult::StepFailed(e) => { metrics::PIPELINE_STEPS.with_label_values(&["failure"]).inc(); From 57dc57dd2c8106ce0b816cead7c7167cf15b152d Mon Sep 17 00:00:00 2001 From: refcell Date: Thu, 11 Jul 2024 13:37:39 -0400 Subject: [PATCH 2/2] fix(examples): small wording fix --- examples/trusted-sync/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/trusted-sync/src/main.rs b/examples/trusted-sync/src/main.rs index 6410d7e74..555b6d4e7 100644 --- a/examples/trusted-sync/src/main.rs +++ b/examples/trusted-sync/src/main.rs @@ -122,7 +122,7 @@ async fn sync(cli: cli::Cli) -> Result<()> { } StepResult::OriginAdvanceErr(e) => { metrics::PIPELINE_STEPS.with_label_values(&["origin_advance_failure"]).inc(); - warn!(target: "loop", "Error advancing origin: {:?}", e); + warn!(target: "loop", "Could not advance origin: {:?}", e); } StepResult::StepFailed(e) => { metrics::PIPELINE_STEPS.with_label_values(&["failure"]).inc();