Skip to content
Permalink
Browse files
[JENKINS-50965 ] - Fix log message (#267)
Current code logs "INFO: %s class '%s' using classloader: %s" if system
property hudson.remoting.RemoteClassLoader.force is set.
The code should be using java.text.MessageFormat.format syntax
but is mistakenly using String.format syntax instead.
  • Loading branch information
pjdarton authored and oleg-nenashev committed May 9, 2018
1 parent 2c63b2f commit 3cc5305ac33a4a7e19ca053ae1dbf85163e0e2a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/remoting/UserRequest.java
@@ -178,7 +178,7 @@ public void checkIfCanBeExecutedOnChannel(Channel channel) throws IOException {
final Logger logger = Logger.getLogger(RemoteClassLoader.class.getName());
if( logger.isLoggable(logLevel) )
{
logger.log(logLevel, "%s class '%s' using classloader: %s", new String[]{ eventMsg, clazz, cl.toString()} );
logger.log(logLevel, "{0} class ''{1}'' using classloader: {2}", new Object[]{ eventMsg, clazz, cl.toString()} );
}
}

0 comments on commit 3cc5305

Please sign in to comment.