This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
1
[PATCH] periodic: Change log level from ERROR to DEBUG on election timeout
Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
---
periodic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/periodic.c b/periodic.c
index 565852d..15cf986 100644
--- a/periodic.c
+++ b/periodic.c
@@ -89,7 +89,7 @@ void libfloat_periodic(libfloat_ctx_t *ctx, uint32_t time)
if (!ctx->is_snapshotting && !ctx->stepping_down)
{
/* We don't want leadership to change in the middle of a snapshot */
- ERROR(ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed);
+ DEBUG(ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed);
libfloat_election_start(ctx, .reason = "Election timeout, start a new one");
}
}
--
2.37.1
LG
> Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
> ---
> periodic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/periodic.c b/periodic.c
> index 565852d..15cf986 100644
> --- a/periodic.c
> +++ b/periodic.c
> @@ -89,7 +89,7 @@ void libfloat_periodic(libfloat_ctx_t *ctx, uint32_t time)
> if (!ctx->is_snapshotting && !ctx->stepping_down)
> {
> /* We don't want leadership to change in the middle of a snapshot */
> - ERROR(ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed);
> + DEBUG(ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed);
> libfloat_election_start(ctx, .reason = "Election timeout, start a new one");
> }
> }
> --
> 2.37.1