From 923cebf902c409341bee8faba00b669b770f7ea1 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 31 Dec 2024 13:17:10 +0200 Subject: [PATCH] libsql-replication: Switch retry message to warn log level If we fail to contact the primary, we return an error message. Let's switch to warn log level to avoid scaring users. --- libsql-replication/src/replicator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsql-replication/src/replicator.rs b/libsql-replication/src/replicator.rs index f28bb9baa8..ca2de123ca 100644 --- a/libsql-replication/src/replicator.rs +++ b/libsql-replication/src/replicator.rs @@ -224,9 +224,9 @@ where } Err(Error::Client(e)) if !error_printed => { if e.downcast_ref::().is_some() { - tracing::error!("error connecting to primary. retrying. Verify that the libsql server version is `>=0.22` error: {e}"); + tracing::warn!("error connecting to primary. retrying. Verify that the libsql server version is `>=0.22` error: {e}"); } else { - tracing::error!("error connecting to primary. retrying. error: {e}"); + tracing::warn!("error connecting to primary. retrying. error: {e}"); } error_printed = true;