Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 3cc5305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/UserRequest.java
Expand Up @@ -178,7 +178,7 @@ protected ResponseToUserRequest<RSP,EXC> perform(Channel channel) throws EXC {
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()} );
}
}

Expand Down

0 comments on commit 3cc5305

Please sign in to comment.