From 153eb5abf1e04cad93f92dc6e258f0072075c34c Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 10 May 2021 16:06:11 +0100 Subject: [PATCH] Add a warning in the log if sync is lost. --- nqptp-message-handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nqptp-message-handlers.c b/nqptp-message-handlers.c index db68924..4aeb74c 100644 --- a/nqptp-message-handlers.c +++ b/nqptp-message-handlers.c @@ -273,7 +273,7 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len, offset = clock_private_info->previous_offset + jitter; } } else { - debug(1,"NQPTP lost sync with clock %" PRIx64 " at %s. Resynchronising.", clock_private_info->clock_id, clock_private_info->ip); + warn("Lost sync with clock %" PRIx64 " at %s. Resynchronising.", clock_private_info->clock_id, clock_private_info->ip); // leave the offset as it was coming in and take it as a sync time clock_private_info->last_sync_time = reception_time; } -- 2.47.2