Authentication-Results: mail-b.sr.ht; dkim=pass header.d=ptrk.io header.i=@ptrk.io Received: from mail.ptrk.io (mail.ptrk.io [163.172.91.119]) by mail-b.sr.ht (Postfix) with ESMTPS id EF4D911EE64 for <~ne02ptzero/libfloat@lists.sr.ht>; Fri, 22 Jul 2022 11:54:10 +0000 (UTC) Received: from authenticated-user (mail.ptrk.io [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ptrk.io (Postfix) with ESMTPSA id 414A7C4EF5; Fri, 22 Jul 2022 11:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ptrk.io; s=mail; t=1658490849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L2O5FpDItTnFyKZLJ6JL7Fl7/jkech8ko2NPP8IG3Ng=; b=AHkc5bnU47IAw6zjK4B8jXSNk9ErgUg8vf63X3AHX1Kuj1tUA4guXK1LOM1ekB/6HI8mWE NZy9VFhpfbnxEjkP7beEjuuLjSCvoQW0bhszSOhKS7spiSqPh1vxxwealuivqYzzSn5Wsc r1yFa5W5TGWQxSDq+xrJU6ZayqIljl0= Date: Fri, 22 Jul 2022 11:54:09 +0000 (UTC) From: Patrik Cyvoct To: Louis Solofrizzo Cc: ~ne02ptzero/libfloat@lists.sr.ht, fflorensa@scaleway.com, pcyvoct@scaleway.com Message-ID: In-Reply-To: <20220722113552.1491261-1-lsolofrizzo@scaleway.com> References: <20220722113552.1491261-1-lsolofrizzo@scaleway.com> Subject: Re: [PATCH] periodic: Change log level from ERROR to DEBUG on election timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ptrk.io; s=mail; t=1658490849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L2O5FpDItTnFyKZLJ6JL7Fl7/jkech8ko2NPP8IG3Ng=; b=nfYYSY3DNxs4+ZMF+qc7zj/kWdXQBNKEdSGmENj6H9EYiw4sxMOv6lqo3gBqzqPIjXmOCn ZrpFC6UyVxgj3gAG3PXV+3YVpb/s7+xjkl46BPacOvxYYJkaPxSwzXLusaOylwJu4J10n/ QuvJJdtEYR/QP06y1h2TdUOD//8wvwA= ARC-Seal: i=1; s=mail; d=ptrk.io; t=1658490849; a=rsa-sha256; cv=none; b=GO5yv116+Zi3pwgEx4WiTdRxQYgTmj4lVm4UxGAq7ZEk90b5dmw4r8kVDGaUeDC0xsIN+e V9BN7glMwVf7QI0sq45S1oVZYodVFy1Slc/MNom20Iw4qUBVwXAqWZXaqQt4IqJpgUDom1 5hzgojj/bkqZ2EPfVwzfrhA5clZVS74= ARC-Authentication-Results: i=1; mail.ptrk.io; auth=pass smtp.mailfrom=patrik@ptrk.io LG > Signed-off-by: Louis Solofrizzo > --- > 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 ti= me) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (!ctx->is_snapshottin= g && !ctx->stepping_down) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = /* We don't want leadership to change in the middle of a snapshot */ > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ERROR= (ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 DEBUG= (ctx, "New election: timeout elapsed %d", ctx->timeout_elapsed); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = libfloat_election_start(ctx, .reason =3D "Election timeout, start a new one= "); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0=C2=A0=C2=A0 } > -- > 2.37.1