X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ms%2Fblueprintsprocessor%2Fmodules%2Fcommons%2Fssh-lib%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fonap%2Fccsdk%2Fcds%2Fblueprintsprocessor%2Fssh%2Fservice%2FBasicAuthSshClientService.kt;fp=ms%2Fblueprintsprocessor%2Fmodules%2Fcommons%2Fssh-lib%2Fsrc%2Fmain%2Fkotlin%2Forg%2Fonap%2Fccsdk%2Fcds%2Fblueprintsprocessor%2Fssh%2Fservice%2FBasicAuthSshClientService.kt;h=a3c730039ac6d3cb838799bd9b21fa8e865ccf4f;hb=e0da7c94aedc038c76d17c1d4a904c7b12ba3c5b;hp=2885d6528ccff55190552a8cdab46b5d44c59df8;hpb=a6defbafb46a5db6b3bf633d1a9c32f503060f55;p=ccsdk%2Fcds.git diff --git a/ms/blueprintsprocessor/modules/commons/ssh-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/ssh/service/BasicAuthSshClientService.kt b/ms/blueprintsprocessor/modules/commons/ssh-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/ssh/service/BasicAuthSshClientService.kt index 2885d6528..a3c730039 100644 --- a/ms/blueprintsprocessor/modules/commons/ssh-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/ssh/service/BasicAuthSshClientService.kt +++ b/ms/blueprintsprocessor/modules/commons/ssh-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/ssh/service/BasicAuthSshClientService.kt @@ -1,7 +1,7 @@ /* * Copyright © 2019 IBM. * - * Modifications Copyright © 2018-2019 IBM, Bell Canada + * Modifications Copyright © 2018-2020 IBM, Bell Canada. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,7 +118,9 @@ open class BasicAuthSshClientService(private val basicAuthSshClientProperties: B } val commandResult = CommandResult(command, deviceOutput, isSuccessful) - log.info("Command Response: ({}) $newLine", commandResult) + if (basicAuthSshClientProperties.logging) { + log.info("Command Response: ({}) $newLine", commandResult) + } return commandResult }