~ne02ptzero/libfloat

periodic: Change log level from ERROR to DEBUG on election timeout v1 APPLIED

Louis Solofrizzo: 1
 periodic: Change log level from ERROR to DEBUG on election timeout

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ne02ptzero/libfloat/patches/34088/mbox | git am -3
Learn more about email & git

[PATCH] periodic: Change log level from ERROR to DEBUG on election timeout Export this patch

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