int128 / gradle-ssh-plugin

Gradle SSH Plugin

Home Page:https://gradle-ssh-plugin.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

suppress/configure internal logging

diacone opened this issue · comments

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.

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