File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/main/java/com/cloudbees/jenkins/plugins/sshcredentials Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 3131import edu .umd .cs .findbugs .annotations .CheckForNull ;
3232import edu .umd .cs .findbugs .annotations .NonNull ;
3333import hudson .ExtensionList ;
34+ import hudson .Functions ;
3435import hudson .model .BuildListener ;
35- import hudson .model .Hudson ;
3636import hudson .model .TaskListener ;
3737import hudson .remoting .Channel ;
3838import hudson .util .StreamTaskListener ;
4141import java .util .Collection ;
4242import java .util .Collections ;
4343import java .util .List ;
44- import java .util .logging .Level ;
45- import java .util .logging .Logger ;
4644import jenkins .model .Jenkins ;
4745import jenkins .security .SlaveToMasterCallable ;
4846import net .jcip .annotations .GuardedBy ;
@@ -437,8 +435,7 @@ public final boolean authenticate() {
437435 try {
438436 authenticated = doAuthenticate ();
439437 } 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
442439 authenticated = false ;
443440 }
444441 }
You can’t perform that action at this time.
0 commit comments