From 540eb33ad45e6db16ed46e75e9c2b9c361468ed4 Mon Sep 17 00:00:00 2001 From: Jacob Gminder Date: Thu, 18 Nov 2021 16:41:25 -0500 Subject: [PATCH] CXP-1566: Change "No maximum LSN recorded" log message to debug level --- .../sqlserver/SqlServerStreamingChangeEventSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debezium-connector-sqlserver/src/main/java/io/debezium/connector/sqlserver/SqlServerStreamingChangeEventSource.java b/debezium-connector-sqlserver/src/main/java/io/debezium/connector/sqlserver/SqlServerStreamingChangeEventSource.java index adfe45f25bb..27657f5dcd3 100644 --- a/debezium-connector-sqlserver/src/main/java/io/debezium/connector/sqlserver/SqlServerStreamingChangeEventSource.java +++ b/debezium-connector-sqlserver/src/main/java/io/debezium/connector/sqlserver/SqlServerStreamingChangeEventSource.java @@ -186,11 +186,11 @@ public boolean executeIteration(ChangeEventSourceContext context, SqlServerParti } } catch (SQLException e) { - LOGGER.warn("No maximum LSN recorded in the database; this may happen if there are no changes recorded in the change table yet or " + + LOGGER.debug("No maximum LSN recorded in the database; this may happen if there are no changes recorded in the change table yet or " + "low activity database where the cdc clean up job periodically clears entries from the cdc tables. " + "Otherwise, this may be an indication that the SQL Server Agent is not running. " + "You should follow the documentation on how to configure SQL Server Agent running status query."); - LOGGER.warn("Cannot query the status of the SQL Server Agent", e); + LOGGER.debug("Cannot query the status of the SQL Server Agent", e); } checkAgent = false; }