File tree 1 file changed +2
-5
lines changed
src/main/java/com/cloudbees/jenkins/plugins/sshcredentials
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 31
31
import edu .umd .cs .findbugs .annotations .CheckForNull ;
32
32
import edu .umd .cs .findbugs .annotations .NonNull ;
33
33
import hudson .ExtensionList ;
34
+ import hudson .Functions ;
34
35
import hudson .model .BuildListener ;
35
- import hudson .model .Hudson ;
36
36
import hudson .model .TaskListener ;
37
37
import hudson .remoting .Channel ;
38
38
import hudson .util .StreamTaskListener ;
41
41
import java .util .Collection ;
42
42
import java .util .Collections ;
43
43
import java .util .List ;
44
- import java .util .logging .Level ;
45
- import java .util .logging .Logger ;
46
44
import jenkins .model .Jenkins ;
47
45
import jenkins .security .SlaveToMasterCallable ;
48
46
import net .jcip .annotations .GuardedBy ;
@@ -437,8 +435,7 @@ public final boolean authenticate() {
437
435
try {
438
436
authenticated = doAuthenticate ();
439
437
} catch (Throwable t ) {
440
- Logger .getLogger (getClass ().getName ())
441
- .log (Level .WARNING , "Uncaught exception escaped doAuthenticate method" , t );
438
+ listener .error ("SSH authentication failed" ).println (Functions .printThrowable (t ).trim ()); // TODO 2.43+ use Functions.printStackTrace
442
439
authenticated = false ;
443
440
}
444
441
}
You can’t perform that action at this time.
0 commit comments