int128 / gradle-ssh-plugin

Gradle SSH Plugin
https://gradle-ssh-plugin.github.io
Apache License 2.0
318 stars 60 forks source link

suppress/configure internal logging #298

Open diacone opened 7 years ago

diacone commented 7 years ago

Environment info

gradle-ssh-plugin-2.8.0 (groovy-ssh-2.8.0, jsch-0.1.53, groovy-2.4.7, java-1.8.0_92)

Steps to reproduce

Set knownHosts to allowAnyHosts

ssh.settings {
    knownHosts = allowAnyHosts
}

When you disable host checking, you get the warn from the internal logger:

Host key checking is off. It may be vulnerable to man-in-the-middle attacks.

I could not find any way to disable that. It would be nice to be able to somehow suppress this message (beside changing gradle's log level with -q).

This is especially annoying when you run long running commands in the background and then poll for results.

szaluk commented 6 years ago

@diacone - Did you find a way to suppress those messages?