Skip to content

Commit

Permalink
Fix for the following issue:
Browse files Browse the repository at this point in the history
Logger calls should be surrounded by log level guards.
  • Loading branch information
scottyw-harness committed May 29, 2024
1 parent f9ebacf commit 21c9b1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/io/harness/cf/client/api/InnerClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public InnerClient(@NonNull final String sdkKey, @NonNull final BaseConfig optio
}

public InnerClient(@NonNull final Connector connector) {
this(connector, BaseConfig.builder().build());
this(connector, BaseConfig.builder().build());
}

public InnerClient(@NonNull Connector connector, @NonNull final BaseConfig options) {
Expand All @@ -81,7 +81,9 @@ public InnerClient(@NonNull Connector connector, @NonNull final BaseConfig optio

protected void setUp(@NonNull final Connector connector, @NonNull final BaseConfig options) {
this.options = options;
log.info("Starting SDK client with configuration: {}", this.options);
if (log.isInfoEnabled()) {
log.info("Starting SDK client with configuration: {}", this.options);
}
this.connector = connector;
this.connector.setOnUnauthorized(this::onUnauthorized);

Expand Down

0 comments on commit 21c9b1a

Please sign in to comment.