Fix sonar issue SslSuportLevel 45/106445/1
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Wed, 22 Apr 2020 12:20:19 +0000 (14:20 +0200)
committerAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Wed, 22 Apr 2020 12:20:19 +0000 (14:20 +0200)
Issue-ID: INT-1517
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: I8ef686ef569d5bac727404bc46d1b164b363a872

pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslSupportLevel.java

index 393a6c5..2325ebc 100644 (file)
@@ -68,7 +68,7 @@ public enum SslSupportLevel {
                         .build();
 
             } catch (GeneralSecurityException e) {
-                LOGGER.error("Could not initialize client due to SSL exception: {}. Default client without SSL support will be used instead.\nCause: {}", e.getMessage(), e.getCause().toString());
+                LOGGER.error("Could not initialize client due to SSL exception: {}. Default client without SSL support will be used instead.\nCause: {}", e.getMessage(), e.getCause());
                 client = NONE.getClient(requestConfig, sslAuthenticationHelper);
             }
             return client;