Skip to content

CASSANALYTICS-149 Change log level for logs in CassandraSchema to debug level to avoid log spamming#196

Merged
jyothsnakonisa merged 3 commits intoapache:trunkfrom
jyothsnakonisa:logs
Apr 10, 2026
Merged

CASSANALYTICS-149 Change log level for logs in CassandraSchema to debug level to avoid log spamming#196
jyothsnakonisa merged 3 commits intoapache:trunkfrom
jyothsnakonisa:logs

Conversation

@jyothsnakonisa
Copy link
Copy Markdown
Contributor

No description provided.

@jyothsnakonisa
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@yifan-c yifan-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have a nit. +1 in advance

@NotNull TableIdLookup tableIdLookup)
{
LOGGER.info("Updating CDC schema tables='{}'",
if (LOGGER.isDebugEnabled())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need explicit isDebugEnabled check? I believe LOGGER.debug work only when debug enabled right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yifan flagged that we do this following computation in the log. Even if debug logging is not enabled it gets computed if we don't have the check. This is an performance optimization

cdcTables.stream()
                 .map(t -> String.format("%s.%s", t.keyspace(), t.table()))
                 .collect(Collectors.joining(","))

@jyothsnakonisa jyothsnakonisa merged commit 4fa8aae into apache:trunk Apr 10, 2026
54 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants