From 9dce94ee138862fc6c24e59ad087315f9f16e9e1 Mon Sep 17 00:00:00 2001 From: Dmitry Smal Date: Thu, 29 Aug 2024 15:00:44 +0300 Subject: [PATCH] Do not spam logs with catchup debugging --- sources/frontend.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/frontend.c b/sources/frontend.c index b1088bc61..36a15f181 100644 --- a/sources/frontend.c +++ b/sources/frontend.c @@ -631,7 +631,7 @@ static od_frontend_status_t od_frontend_local(od_client_t *client) for (;;) { /* local server is alwys null */ if (od_should_drop_connection(client, NULL)) { - /* Odyssey is in a state of completion, we done + /* Odyssey is in a state of completion, we done * the last client's request and now we can drop the connection */ /* a sort of EAGAIN */ @@ -1228,7 +1228,7 @@ static od_frontend_status_t od_frontend_remote_client(od_relay_t *relay, value_ptr->len) != 0) { /* * Raise error: - * client allocated prepared stmt with same name + * client allocated prepared stmt with same name */ return OD_ESERVER_WRITE; } @@ -1400,7 +1400,7 @@ static void od_frontend_remote_client_on_read(od_relay_t *relay, int size) od_stat_recv_client(stats, size); } -/* +/* * machine_sleep with ODYSSEY_CATCHUP_RECHECK_INTERVAL value * will be effitiently just a context switch. */ @@ -1526,8 +1526,8 @@ od_frontend_check_replica_catchup(od_instance_t *instance, od_client_t *client) } if (catchup_timeout) { - od_log(&instance->logger, "catchup", client, NULL, - "checking for lag before doing any actual work"); + od_debug(&instance->logger, "catchup", client, NULL, + "checking for lag before doing any actual work"); status = od_frontend_poll_catchup(client, route, catchup_timeout); }