~ne02ptzero/libfloat

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

Louis Solofrizzo <lsolofrizzo@scaleway.com>
Details
Message ID
<20220722113552.1491261-1-lsolofrizzo@scaleway.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
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
Details
Message ID
<c09e4fcb-072b-4fb1-b40d-4e2e3d1c4793@ptrk.io>
In-Reply-To
<20220722113552.1491261-1-lsolofrizzo@scaleway.com> (view parent)
DKIM signature
pass
Download raw message
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
Reply to thread Export thread (mbox)