Skip to content

Replace JLine static Log reference with SLF4J Logger instance#3887

Open
JackPGreen wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
JackPGreen:logger
Open

Replace JLine static Log reference with SLF4J Logger instance#3887
JackPGreen wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
JackPGreen:logger

Conversation

@JackPGreen

Copy link
Copy Markdown

The class(es) declare a SLF4J Logger LOG field, but sometimes the JLine Log static class is referenced instead.

It makes no sense to swap logging implementations mid-class, my assumption is that it's an error by referencing the class instead of the field.

The class(es) declare a SLF4J `Logger LOG` field, but sometimes the JLine `Log` static class is referenced instead.

It makes no sense to swap logging implementations mid-class, _my assumption_ is that it's an error by referencing the class instead of the field.
@JackPGreen JackPGreen requested a review from a team as a code owner June 4, 2026 14:20
@google-cla

google-cla Bot commented Jun 4, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request standardizes logging practices by replacing references to the JLine 'Log' utility with the project-standard SLF4J 'Logger'. This ensures consistent logging behavior and improves maintainability by leveraging the existing logger instances defined within the classes.

Highlights

  • Logging Standardization: Replaced incorrect references to the JLine static 'Log' class with standard SLF4J 'Logger' instances across multiple source and test files.
  • Code Cleanup: Removed unused JLine logging imports and ensured consistent use of the 'LOG' field for logging operations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request replaces the usage of org.jline.utils.Log with standard SLF4J Logger (LOG) across multiple classes, including CassandraConnector, CassandraSchemaDiscovery, JdbcDataSource, CassandraAllDataTypesIT, and ChangeEventToMapConvertor. This standardizes logging across these components. There are no review comments to address, and I have no additional feedback to provide.

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.31%. Comparing base (d2ed574) to head (f7e60c4).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3887      +/-   ##
============================================
+ Coverage     55.55%   63.31%   +7.76%     
+ Complexity     7026     2315    -4711     
============================================
  Files          1103      514     -589     
  Lines         67573    29933   -37640     
  Branches       7581     3298    -4283     
============================================
- Hits          37537    18953   -18584     
+ Misses        27621    10017   -17604     
+ Partials       2415      963    -1452     
Components Coverage Δ
spanner-templates 88.72% <100.00%> (+0.41%) ⬆️
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration 90.15% <100.00%> (-0.07%) ⬇️
spanner-live-reverse-replication 83.90% <100.00%> (-0.06%) ⬇️
spanner-bulk-migration 92.57% <100.00%> (-0.04%) ⬇️
gcs-spanner-dv 90.37% <100.00%> (+1.38%) ⬆️
Files with missing lines Coverage Δ
...der/io/cassandra/iowrapper/CassandraConnector.java 100.00% <100.00%> (ø)
.../io/cassandra/schema/CassandraSchemaDiscovery.java 98.33% <100.00%> (ø)
...ource/reader/io/jdbc/iowrapper/JdbcDataSource.java 88.09% <100.00%> (ø)
...grations/convertors/ChangeEventToMapConvertor.java 91.04% <100.00%> (+0.13%) ⬆️

... and 612 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants