Skip to content

Commit

Permalink
libsql-replication: Switch retry message to warn log level
Browse files Browse the repository at this point in the history
If we fail to contact the primary, we return an error message. Let's
switch to warn log level to avoid scaring users.
  • Loading branch information
penberg committed Dec 31, 2024
1 parent 21c69a6 commit 6abb52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsql-replication/src/replicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ where
}
Err(Error::Client(e)) if !error_printed => {
if e.downcast_ref::<uuid::Error>().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;
Expand Down

0 comments on commit 6abb52a

Please sign in to comment.