Skip to content

Commit

Permalink
Remove System.out.println. (#316)
Browse files Browse the repository at this point in the history
Motivation:

Applications are improperly printing messages to the log, causing overload in certain situations. There is no need for a println since the log is already being managed by slf4j.

Modifications:

Remove println from buildAsync method

Result:

No improper messages are displayed in the log, and there is no more overload.

Co-authored-by: Danilo Rodrigues <danilo.rodrigues@accenture.com>
  • Loading branch information
daniloarodrigues and Danilo Rodrigues authored Aug 27, 2024
1 parent a54acb3 commit eacf91d
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,6 @@ public SelfT withMetricRegistry(@Nullable Object metricRegistry) {
*/
@NonNull
public CompletionStage<SessionT> buildAsync() {
System.out.println("Using Scylla optimized driver!!!");
LOG.info("Using Scylla optimized driver!!!");
CompletionStage<CqlSession> buildStage = buildDefaultSessionAsync();
CompletionStage<SessionT> wrapStage = buildStage.thenApply(this::wrap);
Expand Down

0 comments on commit eacf91d

Please sign in to comment.